diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2021-12-08 10:31:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-08 10:31:29 +0100 |
commit | 44f80bf1bdb045465895bd955dba106b0ca4a4ca (patch) | |
tree | 4e9079415d89675389fa244a089c6c3cc0af32a8 | |
parent | 8427f0a93f3ba1b6dade0161411a6a4a8beefac6 (diff) | |
parent | 47d6b71b4c2116968ae4ecc3ebe1348012cff654 (diff) |
Merge pull request #148650 from fabaff/pykeyatome
python3Packages.pykeyatome: init at 1.1.2
-rw-r--r-- | pkgs/development/python-modules/pykeyatome/default.nix | 59 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 61 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pykeyatome/default.nix b/pkgs/development/python-modules/pykeyatome/default.nix new file mode 100644 index 0000000000000..8dd6d7fc45d4e --- /dev/null +++ b/pkgs/development/python-modules/pykeyatome/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index abc198783b2dd..ea3a8f01c9cfb 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { }; |