diff --git a/pkgs/development/python-modules/essentials-openapi/default.nix b/pkgs/development/python-modules/essentials-openapi/default.nix new file mode 100644 index 000000000000..52824049c6c1 --- /dev/null +++ b/pkgs/development/python-modules/essentials-openapi/default.nix @@ -0,0 +1,65 @@ +{ + buildPythonPackage, + fetchFromGitHub, + lib, + click, + essentials, + flask, + hatchling, + httpx, + jinja2, + markupsafe, + pydantic, + pytestCheckHook, + pythonImportsCheckHook, + pyyaml, + rich, + setuptools +}: +buildPythonPackage rec { + pname = "essentials-openapi"; + version = "1.0.7"; + pyproject = true; + + src = fetchFromGitHub { + owner = "Neoteroi"; + repo = "essentials-openapi"; + rev = "v${version}"; + hash = "sha256-j0vEMNXZ9TrcFx8iIyTFQIwF49LEincLmnAt+qodYmA="; + }; + + nativeBuildInputs = [ + hatchling + ]; + + nativeCheckInputs = [ + flask + httpx + pydantic + pytestCheckHook + rich + setuptools + ]; + + propagatedBuildInputs = [ + pyyaml + essentials + markupsafe + ]; + + passthru.optional-dependencies = { + full = [ click jinja2 rich httpx ]; + }; + + pythonImportsCheck = [ + "openapidocs" + ]; + + meta = with lib; { + homepage = "https://github.com/Neoteroi/essentials-openapi"; + description = "Functions to handle OpenAPI Documentation"; + changelog = "https://github.com/Neoteroi/essentials-openapi/releases/v${version}"; + license = licenses.mit; + maintainers = with maintainers; [aldoborrero zimbatm]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 763de818712c..474b7f2b1de6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3747,6 +3747,8 @@ self: super: with self; { essentials = callPackage ../development/python-modules/essentials { }; + essentials-openapi = callPackage ../development/python-modules/essentials-openapi { }; + etcd = callPackage ../development/python-modules/etcd { }; etcd3 = callPackage ../development/python-modules/etcd3 {