diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-06-02 13:08:57 +0200 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2021-06-11 11:44:36 +0200 |
commit | 438fadd2ea780669ac361778b25c2bc53b91ce09 (patch) | |
tree | 0eea4b1ea776c7273f96f0cb1e3aceb4f2af73f3 /pkgs/development/python-modules/ismartgate | |
parent | d94868a441b219ecfc7b53af71d85f31148b6c53 (diff) | |
download | nixpkgs-438fadd2ea780669ac361778b25c2bc53b91ce09.tar nixpkgs-438fadd2ea780669ac361778b25c2bc53b91ce09.tar.gz nixpkgs-438fadd2ea780669ac361778b25c2bc53b91ce09.tar.bz2 nixpkgs-438fadd2ea780669ac361778b25c2bc53b91ce09.tar.lz nixpkgs-438fadd2ea780669ac361778b25c2bc53b91ce09.tar.xz nixpkgs-438fadd2ea780669ac361778b25c2bc53b91ce09.tar.zst nixpkgs-438fadd2ea780669ac361778b25c2bc53b91ce09.zip |
python3Packages.ismartgate: init at 4.0.1
Diffstat (limited to 'pkgs/development/python-modules/ismartgate')
-rw-r--r-- | pkgs/development/python-modules/ismartgate/default.nix | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/ismartgate/default.nix b/pkgs/development/python-modules/ismartgate/default.nix new file mode 100644 index 00000000000..594764bae0f --- /dev/null +++ b/pkgs/development/python-modules/ismartgate/default.nix @@ -0,0 +1,60 @@ +{ lib +, asynctest +, buildPythonPackage +, click +, defusedxml +, dicttoxml +, fetchFromGitHub +, httpx +, pycryptodome +, pytest-asyncio +, pytest-raises +, pytestCheckHook +, pythonOlder +, respx +, typing-extensions +}: + +buildPythonPackage rec { + pname = "ismartgate"; + version = "4.0.1"; + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "bdraco"; + repo = pname; + rev = "v${version}"; + sha256 = "1kxlcjnppsk8m93gfcpy3asig1frhp1k5rfqx3rszhkcxmni95m2"; + }; + + propagatedBuildInputs = [ + click + defusedxml + dicttoxml + httpx + pycryptodome + typing-extensions + ]; + + checkInputs = [ + asynctest + pytest-asyncio + pytest-raises + pytestCheckHook + respx + ]; + + postPatch = '' + substituteInPlace setup.py \ + --replace '"pytest-runner>=5.2",' "" + ''; + + pythonImportsCheck = [ "ismartgate" ]; + + meta = with lib; { + description = "Python module to work with the ismartgate and gogogate2 API"; + homepage = "https://github.com/bdraco/ismartgate"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} |