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