nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, asynctest
3, buildPythonPackage
4, fetchFromGitHub
5, pyserial
6, pyserial-asyncio
7, pytest-asyncio
8, pytestCheckHook
9, pythonOlder
10, zigpy
11}:
12
13buildPythonPackage rec {
14 pname = "zigpy-deconz";
15 version = "0.16.0";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchFromGitHub {
21 owner = "zigpy";
22 repo = pname;
23 rev = "refs/tags/${version}";
24 hash = "sha256-MEYe8DGx338ze1t36Fh0Zl8GgBpk2Wmx0EKnewjnTws=";
25 };
26
27 propagatedBuildInputs = [
28 pyserial
29 pyserial-asyncio
30 zigpy
31 ];
32
33 checkInputs = [
34 asynctest
35 pytest-asyncio
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [
40 "zigpy_deconz"
41 ];
42
43 meta = with lib; {
44 description = "Library which communicates with Deconz radios for zigpy";
45 homepage = "https://github.com/zigpy/zigpy-deconz";
46 license = licenses.gpl3Plus;
47 maintainers = with maintainers; [ etu mvnetbiz ];
48 platforms = platforms.linux;
49 };
50}