biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / ismartgate / default.nix
blob6764e3c6c3eed51348ce0bbc44c884f0b3e9e530
2   lib,
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 = "5.0.1";
21   format = "setuptools";
23   disabled = pythonOlder "3.8";
25   src = fetchFromGitHub {
26     owner = "bdraco";
27     repo = pname;
28     rev = "refs/tags/v${version}";
29     hash = "sha256-mfiHoli0ldw/E1SrtOBpDO8ZTC0wTeaoSZ2nPnx5EaQ=";
30   };
32   postPatch = ''
33     substituteInPlace setup.py \
34       --replace '"pytest-runner>=5.2",' ""
35   '';
37   propagatedBuildInputs = [
38     click
39     defusedxml
40     dicttoxml
41     httpx
42     pycryptodome
43     typing-extensions
44   ];
46   nativeCheckInputs = [
47     pytest-asyncio
48     pytest-raises
49     pytestCheckHook
50     respx
51   ];
53   pythonImportsCheck = [ "ismartgate" ];
55   meta = with lib; {
56     description = "Python module to work with the ismartgate and gogogate2 API";
57     homepage = "https://github.com/bdraco/ismartgate";
58     changelog = "https://github.com/bdraco/ismartgate/releases/tag/v${version}";
59     license = with licenses; [ mit ];
60     maintainers = with maintainers; [ fab ];
61   };