ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / pysiaalarm / default.nix
blobc06e1ed32ac8856deb8335b6771dfd49064f20fb
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchPypi
5 , dataclasses-json
6 , pycryptodome
7 , setuptools-scm
8 , pytest-asyncio
9 , pytest-cases
10 , pytestCheckHook
13 buildPythonPackage rec {
14   pname = "pysiaalarm";
15   version = "3.0.2";
17   disabled = pythonOlder "3.8";
19   src = fetchPypi {
20     inherit pname version;
21     sha256 = "sha256-hS0OaafYjRdPVSCOHfb2zKp0tEOl1LyMJpwnpvsvALs=";
22   };
24   postPatch = ''
25     substituteInPlace setup.cfg \
26       --replace "==" ">="
27     substituteInPlace pytest.ini \
28       --replace "--cov pysiaalarm --cov-report term-missing" ""
29   '';
31   nativeBuildInputs = [
32     setuptools-scm
33   ];
35   propagatedBuildInputs = [
36     dataclasses-json
37     pycryptodome
38   ];
40   checkInputs = [
41     pytest-asyncio
42     pytest-cases
43     pytestCheckHook
44   ];
46   pythonImportsCheck = [
47     "pysiaalarm"
48     "pysiaalarm.aio"
49   ];
51   meta = with lib; {
52     description = "Python package for creating a client that talks with SIA-based alarm systems";
53     homepage = "https://github.com/eavanvalkenburg/pysiaalarm";
54     license = licenses.mit;
55     maintainers = with maintainers; [ dotlambda ];
56   };