1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 aiohttp,
6 yarl,
7 aresponses,
8 pytest-asyncio,
9 pytestCheckHook,
10}:
11
12buildPythonPackage rec {
13 pname = "sonarr";
14 version = "0.3.0";
15 format = "setuptools";
16
17 src = fetchFromGitHub {
18 owner = "ctalkington";
19 repo = "python-sonarr";
20 rev = version;
21 sha256 = "0gi34951qhzzrq59hj93mnkid8cvvknlamkhir6ya9mb23fr7bya";
22 };
23
24 propagatedBuildInputs = [
25 aiohttp
26 yarl
27 ];
28
29 nativeCheckInputs = [
30 aresponses
31 pytest-asyncio
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [ "sonarr" ];
36
37 meta = with lib; {
38 description = "Asynchronous Python client for the Sonarr API";
39 homepage = "https://github.com/ctalkington/python-sonarr";
40 license = licenses.mit;
41 maintainers = with maintainers; [ dotlambda ];
42 };
43}