Merge pull request #146359 from fabaff/nessclient

This commit is contained in:
Martin Weinelt 2021-11-20 23:01:15 +01:00 committed by GitHub
commit 595dde5dbe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 94 additions and 1 deletions

View file

@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "justbackoff";
version = "0.6.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "alexferl";
repo = pname;
rev = "v${version}";
sha256 = "097j6jxgl4b3z46x9y9z10643vnr9v831vhagrxzrq6nviil2z6l";
};
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py \
--replace "pytest-runner>=5.2" ""
'';
pythonImportsCheck = [
"justbackoff"
];
meta = with lib; {
description = "Simple backoff algorithm in Python";
homepage = "https://github.com/alexferl/justbackoff";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -0,0 +1,47 @@
{ lib
, asynctest
, buildPythonPackage
, click
, fetchFromGitHub
, justbackoff
, pythonOlder
, pytest-asyncio
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "nessclient";
version = "0.9.16b2";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "nickw444";
repo = pname;
rev = version;
sha256 = "1g3q9bv1nn1b8n6bklc05k8pac4cndzfxfr7liky0gnnbri15k81";
};
propagatedBuildInputs = [
justbackoff
click
];
checkInputs = [
asynctest
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [
"nessclient"
];
meta = with lib; {
description = "Python implementation/abstraction of the Ness D8x/D16x Serial Interface ASCII protocol";
homepage = "https://github.com/nickw444/nessclient";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -559,7 +559,7 @@
"nanoleaf" = ps: with ps; [ aionanoleaf ];
"neato" = ps: with ps; [ aiohttp-cors pybotvac ];
"nederlandse_spoorwegen" = ps: with ps; [ nsapi ];
"ness_alarm" = ps: with ps; [ ]; # missing inputs: nessclient
"ness_alarm" = ps: with ps; [ nessclient ];
"nest" = ps: with ps; [ aiohttp-cors ha-ffmpeg python-nest ]; # missing inputs: google-nest-sdm
"netatmo" = ps: with ps; [ pyturbojpeg aiohttp-cors hass-nabucasa pyatmo ];
"netdata" = ps: with ps; [ netdata ];

View file

@ -536,6 +536,7 @@ in with py.pkgs; buildPythonApplication rec {
"nam"
"namecheapdns"
"neato"
"ness_alarm"
"netatmo"
"nexia"
"nightscout"

View file

@ -4109,6 +4109,8 @@ in {
jupytext = callPackage ../development/python-modules/jupytext { };
justbackoff = callPackage ../development/python-modules/justbackoff { };
jwcrypto = callPackage ../development/python-modules/jwcrypto { };
jxmlease = callPackage ../development/python-modules/jxmlease { };
@ -5074,6 +5076,8 @@ in {
neo = callPackage ../development/python-modules/neo { };
nessclient = callPackage ../development/python-modules/nessclient { };
nest-asyncio = callPackage ../development/python-modules/nest-asyncio { };
nestedtext = callPackage ../development/python-modules/nestedtext { };