My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/pykeyatome/default.nix

59 lines
1.0 KiB

{ lib
, buildPythonPackage
, fake-useragent
, fetchFromGitHub
, pytest-aiohttp
, pytestCheckHook
, pythonOlder
, requests
, requests-mock
, responses
, simplejson
}:
buildPythonPackage rec {
pname = "pykeyatome";
version = "1.5.2";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "jugla";
repo = "pyKeyAtome";
rev = "refs/tags/V${version}";
sha256 = "sha256-9J8MaQs3+/Ld+v3WmA98lSu3iMrX4Se4q1jD1KeRTpw=";
};
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 = "https://github.com/jugla/pyKeyAtome";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}