Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / aiopyarr / default.nix
blobc4a6cf05ad519031b184efe6878dcd772585d3fe
1 { lib
2 , aiohttp
3 , aresponses
4 , buildPythonPackage
5 , ciso8601
6 , fetchFromGitHub
7 , orjson
8 , pytest-asyncio
9 , pytestCheckHook
10 , pythonOlder
13 buildPythonPackage rec {
14   pname = "aiopyarr";
15   version = "23.4.0";
16   format = "setuptools";
18   disabled = pythonOlder "3.9";
20   src = fetchFromGitHub {
21     owner = "tkdrob";
22     repo = pname;
23     rev = "refs/tags/${version}";
24     hash = "sha256-CzNB6ymvDTktiOGdcdCvWLVQ3mKmbdMpc/vezSXCpG4=";
25   };
27   postPatch = ''
28     substituteInPlace setup.py \
29       --replace 'version="master"' 'version="${version}"'
30   '';
32   propagatedBuildInputs = [
33     aiohttp
34     ciso8601
35     orjson
36   ];
38   nativeCheckInputs = [
39     aresponses
40     pytest-asyncio
41     pytestCheckHook
42   ];
44   pythonImportsCheck = [
45     "aiopyarr"
46   ];
48   meta = with lib; {
49     description = "Python API client for Lidarr/Radarr/Readarr/Sonarr";
50     homepage = "https://github.com/tkdrob/aiopyarr";
51     changelog = "https://github.com/tkdrob/aiopyarr/releases/tag/${version}";
52     license = with licenses; [ mit ];
53     maintainers = with maintainers; [ fab ];
54   };