1{ lib 2, aiohttp 3, aresponses 4, buildPythonPackage 5, ciso8601 6, fetchFromGitHub 7, orjson 8, pytest-asyncio 9, pytestCheckHook 10, pythonOlder 11}: 12 13buildPythonPackage rec { 14 pname = "aiopyarr"; 15 version = "23.4.0"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.9"; 19 20 src = fetchFromGitHub { 21 owner = "tkdrob"; 22 repo = pname; 23 rev = "refs/tags/${version}"; 24 hash = "sha256-CzNB6ymvDTktiOGdcdCvWLVQ3mKmbdMpc/vezSXCpG4="; 25 }; 26 27 postPatch = '' 28 substituteInPlace setup.py \ 29 --replace 'version="master"' 'version="${version}"' 30 ''; 31 32 propagatedBuildInputs = [ 33 aiohttp 34 ciso8601 35 orjson 36 ]; 37 38 nativeCheckInputs = [ 39 aresponses 40 pytest-asyncio 41 pytestCheckHook 42 ]; 43 44 pythonImportsCheck = [ 45 "aiopyarr" 46 ]; 47 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 }; 55}