depot/third_party/nixpkgs/pkgs/development/python-modules/python-izone/default.nix
Default email 3cbfd2b52c Project import generated by Copybara.
GitOrigin-RevId: 395879c28386e1abf20c7ecacd45880759548391
2021-12-18 20:06:50 -05:00

52 lines
942 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, aiohttp
, netifaces
, pytest-aio
, pytest-asyncio
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "python-izone";
version = "1.1.8";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "Swamp-Ig";
repo = "pizone";
rev = "v${version}";
sha256 = "sha256-/qPWSTO0PV4lEgwWpgcoBnbUtDUrEVItb4NF9TV2QJU=";
};
propagatedBuildInputs = [
aiohttp
netifaces
];
checkInputs = [
pytest-aio
pytest-asyncio
pytestCheckHook
];
disabledTestPaths = [
# Test are blocking
"tests/test_fullstack.py"
];
pythonImportsCheck = [
"pizone"
];
meta = with lib; {
description = "Python interface to the iZone airconditioner controller";
homepage = "https://github.com/Swamp-Ig/pizone";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ dotlambda ];
};
}