2022-02-14 17:42:12 +01:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, aresponses
|
|
|
|
, buildPythonPackage
|
2022-10-29 10:37:37 +02:00
|
|
|
, ciso8601
|
2022-02-14 17:42:12 +01:00
|
|
|
, fetchFromGitHub
|
2022-10-29 10:37:37 +02:00
|
|
|
, orjson
|
2022-02-14 17:42:12 +01:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiopyarr";
|
2022-11-07 18:13:40 +01:00
|
|
|
version = "22.11.0";
|
2022-02-14 17:42:12 +01:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tkdrob";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-11-07 18:13:40 +01:00
|
|
|
hash = "sha256-8/ixL4ByaBYoPbB4g+Rgx+5OM6vjrFTUEPR42wBKyyg=";
|
2022-02-14 17:42:12 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
2022-10-29 10:37:37 +02:00
|
|
|
ciso8601
|
|
|
|
orjson
|
2022-02-14 17:42:12 +01:00
|
|
|
];
|
|
|
|
|
2023-01-21 13:00:00 +01:00
|
|
|
nativeCheckInputs = [
|
2022-02-14 17:42:12 +01:00
|
|
|
aresponses
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"aiopyarr"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python API client for Lidarr/Radarr/Readarr/Sonarr";
|
|
|
|
homepage = "https://github.com/tkdrob/aiopyarr";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|