Merge pull request #148650 from fabaff/pykeyatome

python3Packages.pykeyatome: init at 1.1.2
This commit is contained in:
Fabian Affolter 2021-12-08 10:31:29 +01:00 committed by GitHub
commit 44f80bf1bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 61 additions and 0 deletions

View file

@ -0,0 +1,59 @@
{ lib
, buildPythonPackage
, fake-useragent
, fetchFromGitHub
, pytest-aiohttp
, pytestCheckHook
, pythonOlder
, requests
, requests-mock
, responses
, simplejson
}:
buildPythonPackage rec {
pname = "pykeyatome";
version = "1.1.2";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "jugla";
repo = "pyKeyAtome";
rev = "V${version}";
sha256 = "sha256-5aKZaS+BFKR1ldAY3BlS/oqYGz1C+ZRkNL9ez/etWh4=";
};
propagatedBuildInputs = [
fake-useragent
requests
simplejson
];
checkInputs = [
pytest-aiohttp
pytestCheckHook
requests-mock
responses
];
disabledTests = [
# Tests require network access
"test_consumption"
"test_get_live"
"test_login"
"test_relog_after_session_down"
];
pythonImportsCheck = [
"pykeyatome"
];
meta = with lib; {
description = "Python module to get data from Atome Key";
homepage = "hhttps://github.com/jugla/pyKeyAtome";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -6698,6 +6698,8 @@ in {
pykerberos = callPackage ../development/python-modules/pykerberos { };
pykeyatome = callPackage ../development/python-modules/pykeyatome { };
pykira = callPackage ../development/python-modules/pykira { };
pykka = callPackage ../development/python-modules/pykka { };