depot/third_party/nixpkgs/pkgs/development/python-modules/essentials-openapi/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

68 lines
1.2 KiB
Nix

{
buildPythonPackage,
fetchFromGitHub,
lib,
click,
essentials,
flask,
hatchling,
httpx,
jinja2,
markupsafe,
pydantic,
pytestCheckHook,
pyyaml,
rich,
setuptools,
}:
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=";
};
nativeBuildInputs = [ hatchling ];
nativeCheckInputs = [
flask
httpx
pydantic
pytestCheckHook
rich
setuptools
];
propagatedBuildInputs = [
pyyaml
essentials
markupsafe
];
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
];
};
}