Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / regenmaschine / default.nix
blob9c8cd8053f5f773abaa15b380712eb396b50b78a
1 { lib
2 , aiohttp
3 , aresponses
4 , buildPythonPackage
5 , certifi
6 , fetchFromGitHub
7 , poetry-core
8 , pytest-aiohttp
9 , pytest-asyncio
10 , pytest-mock
11 , pytestCheckHook
12 , pythonOlder
13 , typing-extensions
16 buildPythonPackage rec {
17   pname = "regenmaschine";
18   version = "2024.03.0";
19   pyproject = true;
21   disabled = pythonOlder "3.10";
23   src = fetchFromGitHub {
24     owner = "bachya";
25     repo = "regenmaschine";
26     rev = "refs/tags/${version}";
27     hash = "sha256-RdmK6oK92j4xqLoAjjqlONYu3IfNNWudo4v7jcc+VGU=";
28   };
30   nativeBuildInputs = [
31     poetry-core
32   ];
34   propagatedBuildInputs = [
35     aiohttp
36     certifi
37     typing-extensions
38   ];
40   nativeCheckInputs = [
41     aresponses
42     pytest-aiohttp
43     pytest-asyncio
44     pytest-mock
45     pytestCheckHook
46   ];
48   disabledTestPaths = [
49     # Examples are prefix with test_
50     "examples/"
51   ];
53   pythonImportsCheck = [
54     "regenmaschine"
55   ];
57   __darwinAllowLocalNetworking = true;
59   meta = with lib; {
60     description = "Python library for interacting with RainMachine smart sprinkler controllers";
61     homepage = "https://github.com/bachya/regenmaschine";
62     changelog = "https://github.com/bachya/regenmaschine/releases/tag/${version}";
63     license = with licenses; [ mit ];
64     maintainers = with maintainers; [ fab ];
65   };