a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fake-useragent
|
|
, fetchFromGitHub
|
|
, pytest-aiohttp
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, requests-mock
|
|
, responses
|
|
, simplejson
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pykeyatome";
|
|
version = "2.1.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jugla";
|
|
repo = "pyKeyAtome";
|
|
rev = "refs/tags/V${version}";
|
|
hash = "sha256-/HfWPrpW4NowFmdmU2teIiex1O03bHemnUdhOoEDRgc=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
fake-useragent
|
|
requests
|
|
simplejson
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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";
|
|
changelog = "https://github.com/jugla/pyKeyAtome/releases/tag/V${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|