nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, aiohttp
3, aresponses
4, buildPythonPackage
5, fetchFromGitHub
6, pytest-asyncio
7, pytestCheckHook
8, pythonOlder
9}:
10
11buildPythonPackage rec {
12 pname = "aiopyarr";
13 version = "22.2.2";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.9";
17
18 src = fetchFromGitHub {
19 owner = "tkdrob";
20 repo = pname;
21 rev = version;
22 hash = "sha256-gkiUPznAJ5nkrdbDKAvODsf6UStsxFugCfkZ0fCJkng=";
23 };
24
25 propagatedBuildInputs = [
26 aiohttp
27 ];
28
29 checkInputs = [
30 aresponses
31 pytest-asyncio
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [
36 "aiopyarr"
37 ];
38
39 meta = with lib; {
40 description = "Python API client for Lidarr/Radarr/Readarr/Sonarr";
41 homepage = "https://github.com/tkdrob/aiopyarr";
42 license = with licenses; [ mit ];
43 maintainers = with maintainers; [ fab ];
44 };
45}