Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pyarr / default.nix
blobef2e3a5b0a0961c8857af82abd882533c1217a0d
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , overrides
5 , poetry-core
6 , pythonOlder
7 , requests
8 , pytestCheckHook
9 , types-requests
10 , responses
13 buildPythonPackage rec {
14   pname = "pyarr";
15   version = "5.2.0";
16   pyproject = true;
18   disabled = pythonOlder "3.9";
20   src = fetchFromGitHub {
21     owner = "totaldebug";
22     repo = "pyarr";
23     rev = "refs/tags/v${version}";
24     hash = "sha256-yvlDnAjmwDNdU1SWHGVrmoD3WHwrNt7hXoNNPo1hm1w=";
25   };
27   postPatch = ''
28     # https://github.com/totaldebug/pyarr/pull/167
29     substituteInPlace pyproject.toml \
30       --replace "poetry.masonry.api" "poetry.core.masonry.api"
31   '';
33   nativeBuildInputs = [
34     poetry-core
35   ];
37   propagatedBuildInputs = [
38     overrides
39     requests
40     types-requests
41   ];
43   nativeCheckInputs = [
44     pytestCheckHook
45     responses
46   ];
48   pythonImportsCheck = [
49     "pyarr"
50   ];
52   disabledTests = [
53     # Tests require a running sonarr instance
54     "test_add"
55     "test_create"
56     "test_del"
57     "test_get"
58     "test_lookup"
59     "test_post"
60     "test_upd"
61   ];
63   meta = with lib; {
64     description = "Python client for Servarr API's (Sonarr, Radarr, Readarr, Lidarr)";
65     homepage = "https://github.com/totaldebug/pyarr";
66     changelog = "https://github.com/totaldebug/pyarr/releases/tag/v${version}";
67     license = licenses.mit;
68     maintainers = with maintainers; [ onny ];
69   };