Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / essentials-openapi / default.nix
blob5fc8251476566c4ca36fa464f11a15462300b983
2   buildPythonPackage,
3   fetchFromGitHub,
4   lib,
5   click,
6   essentials,
7   flask,
8   hatchling,
9   httpx,
10   jinja2,
11   markupsafe,
12   pydantic,
13   pytestCheckHook,
14   pythonImportsCheckHook,
15   pyyaml,
16   rich,
17   setuptools
19 buildPythonPackage rec {
20   pname = "essentials-openapi";
21   version = "1.0.9";
22   pyproject = true;
24   src = fetchFromGitHub {
25     owner = "Neoteroi";
26     repo = "essentials-openapi";
27     rev = "refs/tags/v${version}";
28     hash = "sha256-/NYv0NrE8+0kQg5G3Qf2DtesMHlmKQYczNT8pFlNFZE=";
29   };
31   nativeBuildInputs = [
32     hatchling
33   ];
35   nativeCheckInputs = [
36     flask
37     httpx
38     pydantic
39     pytestCheckHook
40     rich
41     setuptools
42   ];
44   propagatedBuildInputs = [
45     pyyaml
46     essentials
47     markupsafe
48   ];
50   passthru.optional-dependencies = {
51     full = [ click jinja2 rich httpx ];
52   };
54   pythonImportsCheck = [
55     "openapidocs"
56   ];
58   meta = with lib; {
59     homepage = "https://github.com/Neoteroi/essentials-openapi";
60     description = "Functions to handle OpenAPI Documentation";
61     changelog = "https://github.com/Neoteroi/essentials-openapi/releases/v${version}";
62     license = licenses.mit;
63     maintainers = with maintainers; [aldoborrero zimbatm];
64   };