Merge pull request #146359 from fabaff/nessclient
This commit is contained in:
commit
595dde5dbe
41
pkgs/development/python-modules/justbackoff/default.nix
Normal file
41
pkgs/development/python-modules/justbackoff/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
47
pkgs/development/python-modules/nessclient/default.nix
Normal file
47
pkgs/development/python-modules/nessclient/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -559,7 +559,7 @@
|
|||||||
"nanoleaf" = ps: with ps; [ aionanoleaf ];
|
"nanoleaf" = ps: with ps; [ aionanoleaf ];
|
||||||
"neato" = ps: with ps; [ aiohttp-cors pybotvac ];
|
"neato" = ps: with ps; [ aiohttp-cors pybotvac ];
|
||||||
"nederlandse_spoorwegen" = ps: with ps; [ nsapi ];
|
"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
|
"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 ];
|
"netatmo" = ps: with ps; [ pyturbojpeg aiohttp-cors hass-nabucasa pyatmo ];
|
||||||
"netdata" = ps: with ps; [ netdata ];
|
"netdata" = ps: with ps; [ netdata ];
|
||||||
|
@ -536,6 +536,7 @@ in with py.pkgs; buildPythonApplication rec {
|
|||||||
"nam"
|
"nam"
|
||||||
"namecheapdns"
|
"namecheapdns"
|
||||||
"neato"
|
"neato"
|
||||||
|
"ness_alarm"
|
||||||
"netatmo"
|
"netatmo"
|
||||||
"nexia"
|
"nexia"
|
||||||
"nightscout"
|
"nightscout"
|
||||||
|
@ -4109,6 +4109,8 @@ in {
|
|||||||
|
|
||||||
jupytext = callPackage ../development/python-modules/jupytext { };
|
jupytext = callPackage ../development/python-modules/jupytext { };
|
||||||
|
|
||||||
|
justbackoff = callPackage ../development/python-modules/justbackoff { };
|
||||||
|
|
||||||
jwcrypto = callPackage ../development/python-modules/jwcrypto { };
|
jwcrypto = callPackage ../development/python-modules/jwcrypto { };
|
||||||
|
|
||||||
jxmlease = callPackage ../development/python-modules/jxmlease { };
|
jxmlease = callPackage ../development/python-modules/jxmlease { };
|
||||||
@ -5074,6 +5076,8 @@ in {
|
|||||||
|
|
||||||
neo = callPackage ../development/python-modules/neo { };
|
neo = callPackage ../development/python-modules/neo { };
|
||||||
|
|
||||||
|
nessclient = callPackage ../development/python-modules/nessclient { };
|
||||||
|
|
||||||
nest-asyncio = callPackage ../development/python-modules/nest-asyncio { };
|
nest-asyncio = callPackage ../development/python-modules/nest-asyncio { };
|
||||||
|
|
||||||
nestedtext = callPackage ../development/python-modules/nestedtext { };
|
nestedtext = callPackage ../development/python-modules/nestedtext { };
|
||||||
|
Loading…
Reference in New Issue
Block a user