Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pydiscovergy / default.nix
blobf671ec1e5e60fd41db013aff99439a53185ba48a
1 { lib
2 , authlib
3 , buildPythonPackage
4 , fetchFromGitHub
5 , httpx
6 , mashumaro
7 , orjson
8 , pytest-httpx
9 , poetry-core
10 , pytestCheckHook
11 , pythonOlder
12 , pythonRelaxDepsHook
13 , pytz
14 , respx
17 buildPythonPackage rec {
18   pname = "pydiscovergy";
19   version = "3.0.0";
20   format = "pyproject";
22   disabled = pythonOlder "3.10";
24   src = fetchFromGitHub {
25     owner = "jpbede";
26     repo = "pydiscovergy";
27     rev = "refs/tags/v${version}";
28     hash = "sha256-ArcH/4ZyOtIGmoXArU+oEd357trJnS9umlN9B+U0dBI=";
29   };
31   postPatch = ''
32     sed -i '/addopts =/d' pyproject.toml
33   '';
35   nativeBuildInputs = [
36     poetry-core
37     pythonRelaxDepsHook
38   ];
40   propagatedBuildInputs = [
41     authlib
42     httpx
43     mashumaro
44     orjson
45     pytz
46   ];
48   nativeCheckInputs = [
49     pytest-httpx
50     pytestCheckHook
51     respx
52   ];
54   pythonImportsCheck = [
55     "pydiscovergy"
56   ];
58   meta = with lib; {
59     description = "Async Python 3 library for interacting with the Discovergy API";
60     homepage = "https://github.com/jpbede/pydiscovergy";
61     changelog = "https://github.com/jpbede/pydiscovergy/releases/tag/v${version}";
62     license = licenses.mit;
63     maintainers = with maintainers; [ fab ];
64   };