python3Packages.ismartgate: init at 4.0.1

This commit is contained in:
Fabian Affolter
2021-06-11 11:44:36 +02:00
committed by Martin Weinelt
parent d94868a441
commit 438fadd2ea
2 changed files with 62 additions and 0 deletions
@@ -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 ];
};
}
+2
View File
@@ -3480,6 +3480,8 @@ in {
iso3166 = callPackage ../development/python-modules/iso3166 { };
ismartgate = callPackage ../development/python-modules/ismartgate { };
iso-639 = callPackage ../development/python-modules/iso-639 { };
iso8601 = callPackage ../development/python-modules/iso8601 { };