2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fake-useragent,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytest-aiohttp,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
requests-mock,
|
|
|
|
responses,
|
|
|
|
simplejson,
|
2021-12-19 01:06:50 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pykeyatome";
|
2023-03-04 12:14:45 +00:00
|
|
|
version = "2.1.2";
|
2021-12-19 01:06:50 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jugla";
|
|
|
|
repo = "pyKeyAtome";
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "refs/tags/V${version}";
|
2023-03-04 12:14:45 +00:00
|
|
|
hash = "sha256-zRXUjekawf2/zTSlXqHVB02dDkb6HbU4NN6UBgl2rtg=";
|
2021-12-19 01:06:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
fake-useragent
|
|
|
|
requests
|
|
|
|
simplejson
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-12-19 01:06:50 +00:00
|
|
|
pytest-aiohttp
|
|
|
|
pytestCheckHook
|
|
|
|
requests-mock
|
|
|
|
responses
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Tests require network access
|
|
|
|
"test_consumption"
|
|
|
|
"test_get_live"
|
|
|
|
"test_login"
|
|
|
|
"test_relog_after_session_down"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pykeyatome" ];
|
2021-12-19 01:06:50 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module to get data from Atome Key";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "pykeyatome";
|
2022-01-13 20:06:32 +00:00
|
|
|
homepage = "https://github.com/jugla/pyKeyAtome";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/jugla/pyKeyAtome/releases/tag/V${version}";
|
2021-12-19 01:06:50 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|