python310Packages.python-rabbitair: init at 0.0.8
This commit is contained in:
parent
0729f1bbf2
commit
a0db18f052
2 changed files with 62 additions and 0 deletions
60
pkgs/development/python-modules/python-rabbitair/default.nix
Normal file
60
pkgs/development/python-modules/python-rabbitair/default.nix
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, cryptography
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, typing-extensions
|
||||||
|
, zeroconf
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "python-rabbitair";
|
||||||
|
version = "0.0.8";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "rabbit-air";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-CGr7NvnGRNTiKq5BpB/zmfgyd/2ggTbO0nj+Q+MavTs=";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
cryptography
|
||||||
|
zeroconf
|
||||||
|
] ++ lib.optionals (pythonOlder "3.8") [
|
||||||
|
typing-extensions
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytest-asyncio
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"rabbitair"
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# Tests require network access
|
||||||
|
"test_info"
|
||||||
|
"test_no_response"
|
||||||
|
"test_protocol_error"
|
||||||
|
"test_sequential_requests"
|
||||||
|
"test_set_state"
|
||||||
|
"test_state_a2"
|
||||||
|
"test_state_a3"
|
||||||
|
"test_zeroconf"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Module for the control of Rabbit Air air purifiers";
|
||||||
|
homepage = "https://github.com/rabbit-air/python-rabbitair";
|
||||||
|
license = with licenses; [ asl20 ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -8470,6 +8470,8 @@ in {
|
||||||
|
|
||||||
python-rapidjson = callPackage ../development/python-modules/python-rapidjson { };
|
python-rapidjson = callPackage ../development/python-modules/python-rapidjson { };
|
||||||
|
|
||||||
|
python-rabbitair = callPackage ../development/python-modules/python-rabbitair { };
|
||||||
|
|
||||||
python-redis-lock = callPackage ../development/python-modules/python-redis-lock { };
|
python-redis-lock = callPackage ../development/python-modules/python-redis-lock { };
|
||||||
|
|
||||||
python-registry = callPackage ../development/python-modules/python-registry { };
|
python-registry = callPackage ../development/python-modules/python-registry { };
|
||||||
|
|
Loading…
Reference in a new issue