Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / python-izone / default.nix
blob19dbbf733dc6c180f5fc31dd25a9456148776d99
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , aiohttp
6 , netifaces
7 , pytest-aio
8 , pytest-asyncio
9 , pytestCheckHook
10 , setuptools-scm
13 buildPythonPackage rec {
14   pname = "python-izone";
15   version = "1.2.9";
16   format = "setuptools";
18   disabled = pythonOlder "3.8";
20   src = fetchFromGitHub {
21     owner = "Swamp-Ig";
22     repo = "pizone";
23     rev = "refs/tags/v${version}";
24     hash = "sha256-0rj+tKn2pbFe+nczTMGLwIwmc4jCznGGF4/IMjlEvQg=";
25   };
27   nativeBuildInputs = [
28     setuptools-scm
29   ];
31   SETUPTOOLS_SCM_PRETEND_VERSION = version;
33   propagatedBuildInputs = [
34     aiohttp
35     netifaces
36   ];
38   nativeCheckInputs = [
39     pytest-aio
40     pytest-asyncio
41     pytestCheckHook
42   ];
44   doCheck = false; # most tests access network
46   pythonImportsCheck = [
47     "pizone"
48   ];
50   meta = with lib; {
51     description = "Python interface to the iZone airconditioner controller";
52     homepage = "https://github.com/Swamp-Ig/pizone";
53     license = licenses.gpl3Plus;
54     maintainers = with maintainers; [ dotlambda ];
55   };