From 47d6b71b4c2116968ae4ecc3ebe1348012cff654 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 5 Dec 2021 01:00:23 +0100 Subject: [PATCH] python3Packages.pykeyatome: init at 1.1.2 --- .../python-modules/pykeyatome/default.nix | 59 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 61 insertions(+) create mode 100644 pkgs/development/python-modules/pykeyatome/default.nix diff --git a/pkgs/development/python-modules/pykeyatome/default.nix b/pkgs/development/python-modules/pykeyatome/default.nix new file mode 100644 index 000000000000..8dd6d7fc45d4 --- /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 6569bf250ddb..3fda5e88e2bc 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6674,6 +6674,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 { };