biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / zigpy-znp / default.nix
blob98a7661f04839e1373b6577472c5ec0a89270651
2   lib,
3   async-timeout,
4   buildPythonPackage,
5   coloredlogs,
6   fetchFromGitHub,
7   jsonschema,
8   pytest-asyncio,
9   pytest-mock,
10   pytest-rerunfailures,
11   pytest-timeout,
12   pytest-xdist,
13   pytestCheckHook,
14   pythonOlder,
15   setuptools,
16   voluptuous,
17   zigpy,
20 buildPythonPackage rec {
21   pname = "zigpy-znp";
22   version = "0.12.4";
23   pyproject = true;
25   disabled = pythonOlder "3.7";
27   src = fetchFromGitHub {
28     owner = "zigpy";
29     repo = pname;
30     rev = "refs/tags/v${version}";
31     hash = "sha256-5DuqM7MgntV/3WquR+0Cr/vIwYL35ZVpGlNZPj92jJ4=";
32   };
34   postPatch = ''
35     substituteInPlace pyproject.toml \
36       --replace-fail "timeout = 20" "timeout = 300" \
37       --replace-fail ', "setuptools-git-versioning<2"' "" \
38       --replace-fail 'dynamic = ["version"]' 'version = "${version}"'
39   '';
41   build-system = [ setuptools ];
43   dependencies = [
44     async-timeout
45     coloredlogs
46     jsonschema
47     voluptuous
48     zigpy
49   ];
51   doCheck = false; # tests are not compatible with zigpy 0.65.3
53   nativeCheckInputs = [
54     pytest-asyncio
55     pytest-mock
56     pytest-rerunfailures
57     pytest-timeout
58     pytest-xdist
59     pytestCheckHook
60   ];
62   pytestFlagsArray = [ "--reruns=3" ];
64   disabledTests = [
65     # failing since zigpy 0.60.0
66     "test_join_device"
67     "test_nonstandard_profile"
68     "test_permit_join"
69     "test_request_recovery_route_rediscovery_zdo"
70     "test_watchdog"
71     "test_zigpy_request"
72     "test_zigpy_request_failure"
73   ];
75   pythonImportsCheck = [ "zigpy_znp" ];
77   meta = with lib; {
78     description = "Library for zigpy which communicates with TI ZNP radios";
79     homepage = "https://github.com/zigpy/zigpy-znp";
80     changelog = "https://github.com/zigpy/zigpy-znp/releases/tag/v${version}";
81     license = licenses.gpl3Plus;
82     maintainers = with maintainers; [ mvnetbiz ];
83     platforms = platforms.linux;
84   };