Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / ismartgate / default.nix
blob1a61b002aa3ae12516ce40c2336f47e59ad61e5f
1 { lib
2 , buildPythonPackage
3 , click
4 , defusedxml
5 , dicttoxml
6 , fetchFromGitHub
7 , httpx
8 , pycryptodome
9 , pytest-asyncio
10 , pytest-raises
11 , pytestCheckHook
12 , pythonOlder
13 , respx
14 , typing-extensions
17 buildPythonPackage rec {
18   pname = "ismartgate";
19   version = "5.0.1";
20   format = "setuptools";
22   disabled = pythonOlder "3.8";
24   src = fetchFromGitHub {
25     owner = "bdraco";
26     repo = pname;
27     rev = "refs/tags/v${version}";
28     hash = "sha256-mfiHoli0ldw/E1SrtOBpDO8ZTC0wTeaoSZ2nPnx5EaQ=";
29   };
31   postPatch = ''
32     substituteInPlace setup.py \
33       --replace '"pytest-runner>=5.2",' ""
34   '';
36   propagatedBuildInputs = [
37     click
38     defusedxml
39     dicttoxml
40     httpx
41     pycryptodome
42     typing-extensions
43   ];
45   nativeCheckInputs = [
46     pytest-asyncio
47     pytest-raises
48     pytestCheckHook
49     respx
50   ];
52   pythonImportsCheck = [
53     "ismartgate"
54   ];
56   meta = with lib; {
57     description = "Python module to work with the ismartgate and gogogate2 API";
58     homepage = "https://github.com/bdraco/ismartgate";
59     changelog = "https://github.com/bdraco/ismartgate/releases/tag/v${version}";
60     license = with licenses; [ mit ];
61     maintainers = with maintainers; [ fab ];
62   };