Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / zigpy-zigate / default.nix
blob0c11c6ed5c3d8b1f5cdc88c24aadfb5a7b1df2e6
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , gpiozero
5 , mock
6 , pyserial
7 , pyserial-asyncio
8 , pyusb
9 , pytest-asyncio
10 , pytestCheckHook
11 , pythonOlder
12 , setuptools
13 , zigpy
16 buildPythonPackage rec {
17   pname = "zigpy-zigate";
18   version = "0.12.0";
19   pyproject = true;
21   disabled = pythonOlder "3.8";
23   src = fetchFromGitHub {
24     owner = "zigpy";
25     repo = "zigpy-zigate";
26     rev = "refs/tags/${version}";
27     hash = "sha256-wziXUFYSUXhzWHM870jphG12h99WVzqiYimtIbkXyM0=";
28   };
30   postPatch = ''
31     substituteInPlace pyproject.toml \
32       --replace ', "setuptools-git-versioning<2"' "" \
33       --replace 'dynamic = ["version"]' 'version = "${version}"'
34   '';
36   nativeBuildInputs = [
37     setuptools
38   ];
40   propagatedBuildInputs = [
41     gpiozero
42     pyserial
43     pyserial-asyncio
44     pyusb
45     zigpy
46   ];
48   nativeCheckInputs = [
49     mock
50     pytest-asyncio
51     pytestCheckHook
52   ];
54   pythonImportsCheck = [
55     "zigpy_zigate"
56   ];
58   disabledTestPaths = [
59     # Fails in sandbox
60     "tests/test_application.py "
61   ];
63   meta = with lib; {
64     description = "Library which communicates with ZiGate radios for zigpy";
65     homepage = "https://github.com/zigpy/zigpy-zigate";
66     changelog = "https://github.com/zigpy/zigpy-zigate/releases/tag/${version}";
67     license = licenses.gpl3Plus;
68     maintainers = with maintainers; [ mvnetbiz ];
69     platforms = platforms.linux;
70   };