blob: 3ef60fe7185dadcd417cf393980549e965bf800c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{
lib,
aiohttp,
aresponses,
buildPythonPackage,
ciso8601,
fetchFromGitHub,
orjson,
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "aiopyarr";
version = "23.4.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "tkdrob";
repo = "aiopyarr";
tag = version;
hash = "sha256-CzNB6ymvDTktiOGdcdCvWLVQ3mKmbdMpc/vezSXCpG4=";
};
postPatch = ''
substituteInPlace setup.py \
--replace 'version="master"' 'version="${version}"'
'';
propagatedBuildInputs = [
aiohttp
ciso8601
orjson
];
nativeCheckInputs = [
aresponses
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "aiopyarr" ];
meta = {
description = "Python API client for Lidarr/Radarr/Readarr/Sonarr";
homepage = "https://github.com/tkdrob/aiopyarr";
changelog = "https://github.com/tkdrob/aiopyarr/releases/tag/${version}";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
};
}
|