Merge pull request #117302 from fabaff/bump-subarulink

This commit is contained in:
Martin Weinelt 2021-03-23 01:40:04 +01:00 committed by GitHub
commit 2e110025a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 8 deletions

View File

@ -1,38 +1,49 @@
{ lib { lib
, buildPythonPackage
, fetchFromGitHub
, aiohttp , aiohttp
, asynctest , asynctest
, stdiomask , buildPythonPackage
, cryptography , cryptography
, pytestcov , fetchFromGitHub
, pytest-asyncio , pytest-asyncio
, pytestCheckHook , pytestCheckHook
, pythonOlder
, stdiomask
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "subarulink"; pname = "subarulink";
version = "0.3.12"; version = "0.3.13";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "G-Two"; owner = "G-Two";
repo = pname; repo = pname;
rev = "subaru-v${version}"; rev = "subaru-v${version}";
sha256 = "0mhy4np3g10k778062sp2q65cfjhp4y1fghn8yvs6qg6jmg047z6"; sha256 = "0dqbb1iiil1vn97zxnpphn63bl8z0ibgyca90ynx958cy78kys0g";
}; };
propagatedBuildInputs = [ aiohttp stdiomask ]; propagatedBuildInputs = [
aiohttp
stdiomask
];
checkInputs = [ checkInputs = [
asynctest asynctest
cryptography cryptography
pytest-asyncio pytest-asyncio
pytestcov
pytestCheckHook pytestCheckHook
]; ];
postPatch = ''
substituteInPlace setup.cfg --replace "--cov=subarulink" ""
'';
__darwinAllowLocalNetworking = true; __darwinAllowLocalNetworking = true;
preCheck = ''
export HOME=$(mktemp -d)
'';
pythonImportsCheck = [ "subarulink" ]; pythonImportsCheck = [ "subarulink" ];
meta = with lib; { meta = with lib; {

View File

@ -299,6 +299,7 @@ in with py.pkgs; buildPythonApplication rec {
"sql" "sql"
"ssdp" "ssdp"
"stream" "stream"
"subaru"
"sun" "sun"
"switch" "switch"
"system_health" "system_health"