nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, aiohttp
6, netifaces
7, pytest-aio
8, pytest-asyncio
9, pytestCheckHook
10}:
11
12buildPythonPackage rec {
13 pname = "python-izone";
14 version = "1.2.7";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchFromGitHub {
20 owner = "Swamp-Ig";
21 repo = "pizone";
22 rev = "v${version}";
23 hash = "sha256-CvFOhs56dfNerK3junWElQfTJi1YXA86zMbv0tseQC8=";
24 };
25
26 propagatedBuildInputs = [
27 aiohttp
28 netifaces
29 ];
30
31 checkInputs = [
32 pytest-aio
33 pytest-asyncio
34 pytestCheckHook
35 ];
36
37 doCheck = false; # most tests access network
38
39 pythonImportsCheck = [
40 "pizone"
41 ];
42
43 meta = with lib; {
44 description = "Python interface to the iZone airconditioner controller";
45 homepage = "https://github.com/Swamp-Ig/pizone";
46 license = licenses.gpl3Plus;
47 maintainers = with maintainers; [ dotlambda ];
48 };
49}