ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / ismartgate / default.nix
blob943036ecbd4609238bb0b2677a7402745e1c9821
1 { lib
2 , asynctest
3 , buildPythonPackage
4 , click
5 , defusedxml
6 , dicttoxml
7 , fetchFromGitHub
8 , httpx
9 , pycryptodome
10 , pytest-asyncio
11 , pytest-raises
12 , pytestCheckHook
13 , pythonOlder
14 , respx
15 , typing-extensions
18 buildPythonPackage rec {
19   pname = "ismartgate";
20   version = "4.0.4";
21   format = "setuptools";
23   disabled = pythonOlder "3.7";
25   src = fetchFromGitHub {
26     owner = "bdraco";
27     repo = pname;
28     rev = "v${version}";
29     hash = "sha256-yh7gPyy3VMdyINBCZo5K2wA0BY7yYgHrKGZRB/pm77U=";
30   };
32   propagatedBuildInputs = [
33     click
34     defusedxml
35     dicttoxml
36     httpx
37     pycryptodome
38     typing-extensions
39   ];
41   checkInputs = [
42     asynctest
43     pytest-asyncio
44     pytest-raises
45     pytestCheckHook
46     respx
47   ];
49   postPatch = ''
50     substituteInPlace setup.py \
51       --replace '"pytest-runner>=5.2",' ""
52   '';
54   pythonImportsCheck = [
55     "ismartgate"
56   ];
58   disabledTestPaths = [
59     # Tests are out-dated
60     "ismartgate/tests/test_init.py"
61   ];
64   meta = with lib; {
65     description = "Python module to work with the ismartgate and gogogate2 API";
66     homepage = "https://github.com/bdraco/ismartgate";
67     license = with licenses; [ mit ];
68     maintainers = with maintainers; [ fab ];
69   };