python311Packages.essentials-openapi: init at 1.0.9

This commit is contained in:
zimbatm 2024-02-01 16:06:07 +01:00
parent 352a41f7ce
commit 7782d26fb9
2 changed files with 67 additions and 0 deletions

View File

@ -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];
};
}

View File

@ -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 {