2024-02-29 20:09:43 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
lib,
|
|
|
|
click,
|
|
|
|
essentials,
|
|
|
|
flask,
|
|
|
|
hatchling,
|
|
|
|
httpx,
|
|
|
|
jinja2,
|
|
|
|
markupsafe,
|
|
|
|
pydantic,
|
|
|
|
pytestCheckHook,
|
|
|
|
pyyaml,
|
|
|
|
rich,
|
2024-06-05 15:53:02 +00:00
|
|
|
setuptools,
|
2024-02-29 20:09:43 +00:00
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "essentials-openapi";
|
|
|
|
version = "1.0.9";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Neoteroi";
|
|
|
|
repo = "essentials-openapi";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-/NYv0NrE8+0kQg5G3Qf2DtesMHlmKQYczNT8pFlNFZE=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ hatchling ];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
flask
|
|
|
|
httpx
|
|
|
|
pydantic
|
|
|
|
pytestCheckHook
|
|
|
|
rich
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyyaml
|
|
|
|
essentials
|
|
|
|
markupsafe
|
|
|
|
];
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
optional-dependencies = {
|
2024-06-05 15:53:02 +00:00
|
|
|
full = [
|
|
|
|
click
|
|
|
|
jinja2
|
|
|
|
rich
|
|
|
|
httpx
|
|
|
|
];
|
2024-02-29 20:09:43 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "openapidocs" ];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
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;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
aldoborrero
|
|
|
|
zimbatm
|
|
|
|
];
|
2024-02-29 20:09:43 +00:00
|
|
|
};
|
|
|
|
}
|