at master 1.4 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 overrides, 6 poetry-core, 7 pythonOlder, 8 requests, 9 pytestCheckHook, 10 types-requests, 11 responses, 12}: 13 14buildPythonPackage rec { 15 pname = "pyarr"; 16 version = "5.2.0"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.9"; 20 21 src = fetchFromGitHub { 22 owner = "totaldebug"; 23 repo = "pyarr"; 24 tag = "v${version}"; 25 hash = "sha256-yvlDnAjmwDNdU1SWHGVrmoD3WHwrNt7hXoNNPo1hm1w="; 26 }; 27 28 postPatch = '' 29 # https://github.com/totaldebug/pyarr/pull/167 30 substituteInPlace pyproject.toml \ 31 --replace "poetry.masonry.api" "poetry.core.masonry.api" 32 ''; 33 34 nativeBuildInputs = [ poetry-core ]; 35 36 propagatedBuildInputs = [ 37 overrides 38 requests 39 types-requests 40 ]; 41 42 nativeCheckInputs = [ 43 pytestCheckHook 44 responses 45 ]; 46 47 pythonImportsCheck = [ "pyarr" ]; 48 49 disabledTests = [ 50 # Tests require a running sonarr instance 51 "test_add" 52 "test_create" 53 "test_del" 54 "test_get" 55 "test_lookup" 56 "test_post" 57 "test_upd" 58 ]; 59 60 meta = with lib; { 61 description = "Python client for Servarr API's (Sonarr, Radarr, Readarr, Lidarr)"; 62 homepage = "https://github.com/totaldebug/pyarr"; 63 changelog = "https://github.com/totaldebug/pyarr/releases/tag/v${version}"; 64 license = licenses.mit; 65 maintainers = with maintainers; [ onny ]; 66 }; 67}