Merge pull request #148650 from fabaff/pykeyatome
python3Packages.pykeyatome: init at 1.1.2
This commit is contained in:
commit
44f80bf1bd
2 changed files with 61 additions and 0 deletions
59
pkgs/development/python-modules/pykeyatome/default.nix
Normal file
59
pkgs/development/python-modules/pykeyatome/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue