Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / zigpy-deconz / default.nix
blob930fcf0a7d2b813185fefdf96677c44ffc2f6579
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pyserial
5 , pyserial-asyncio
6 , pytest-asyncio
7 , pytestCheckHook
8 , pythonOlder
9 , setuptools
10 , zigpy
13 buildPythonPackage rec {
14   pname = "zigpy-deconz";
15   version = "0.23.1";
16   pyproject = true;
18   disabled = pythonOlder "3.7";
20   src = fetchFromGitHub {
21     owner = "zigpy";
22     repo = pname;
23     rev = "refs/tags/${version}";
24     hash = "sha256-10EyT3IGdAtF9OUbfZ5OtP+Ot35O0SfMDtsyw5FQ+/8=";
25   };
27   postPatch = ''
28     substituteInPlace pyproject.toml \
29       --replace ', "setuptools-git-versioning<2"' "" \
30       --replace 'dynamic = ["version"]' 'version = "${version}"'
31   '';
33   nativeBuildInputs = [
34     setuptools
35   ];
37   propagatedBuildInputs = [
38     pyserial
39     pyserial-asyncio
40     zigpy
41   ];
43   nativeCheckInputs = [
44     pytest-asyncio
45     pytestCheckHook
46   ];
48   pythonImportsCheck = [
49     "zigpy_deconz"
50   ];
52   meta = with lib; {
53     description = "Library which communicates with Deconz radios for zigpy";
54     homepage = "https://github.com/zigpy/zigpy-deconz";
55     changelog = "https://github.com/zigpy/zigpy-deconz/releases/tag/${version}";
56     license = licenses.gpl3Plus;
57     maintainers = with maintainers; [ mvnetbiz ];
58     platforms = platforms.linux;
59   };