Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pyrainbird / default.nix
blobbca013babd9e9dcc79044f8ab5df1280dfc55cd3
1 { lib
2 , aiohttp-retry
3 , buildPythonPackage
4 , fetchFromGitHub
5 , freezegun
6 , ical
7 , parameterized
8 , pycryptodome
9 , pydantic
10 , pytest-aiohttp
11 , pytest-asyncio
12 , pytest-golden
13 , pytest-mock
14 , pytestCheckHook
15 , python-dateutil
16 , pythonOlder
17 , pyyaml
18 , requests
19 , requests-mock
20 , responses
21 , setuptools
24 buildPythonPackage rec {
25   pname = "pyrainbird";
26   version = "4.0.2";
27   pyproject = true;
29   disabled = pythonOlder "3.10";
31   src = fetchFromGitHub {
32     owner = "allenporter";
33     repo = "pyrainbird";
34     rev = "refs/tags/${version}";
35     hash = "sha256-4AoxLZv0u8wCG3ihw0JqsqsO5zG5UyP4ebSX99ve8sg=";
36   };
38   postPatch = ''
39     substituteInPlace pytest.ini \
40       --replace-fail "--cov=pyrainbird --cov-report=term-missing" ""
41   '';
43   nativeBuildInputs = [
44     setuptools
45   ];
47   propagatedBuildInputs = [
48     aiohttp-retry
49     ical
50     pycryptodome
51     pydantic
52     python-dateutil
53     pyyaml
54     requests
55   ];
57   __darwinAllowLocalNetworking = true;
59   nativeCheckInputs = [
60     freezegun
61     parameterized
62     pytest-aiohttp
63     pytest-asyncio
64     pytest-golden
65     pytest-mock
66     pytestCheckHook
67     requests-mock
68     responses
69   ];
71   pythonImportsCheck = [
72     "pyrainbird"
73   ];
75   meta = with lib; {
76     description = "Module to interact with Rainbird controllers";
77     homepage = "https://github.com/allenporter/pyrainbird";
78     changelog = "https://github.com/allenporter/pyrainbird/releases/tag/${version}";
79     license = with licenses; [ mit ];
80     maintainers = with maintainers; [ fab ];
81   };