nixpkgs/pkgs/development/python-modules/essentials-openapi/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

73 lines
1.2 KiB
Nix
Raw Normal View History

{
buildPythonPackage,
fetchFromGitHub,
lib,
click,
essentials,
flask,
hatchling,
httpx,
jinja2,
markupsafe,
pydantic,
pytestCheckHook,
pyyaml,
rich,
setuptools,
}:
buildPythonPackage rec {
pname = "essentials-openapi";
version = "1.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "Neoteroi";
repo = "essentials-openapi";
tag = "v${version}";
hash = "sha256-CdDRPzRNx/5docikL8BYdFnEIr/qav8ij/1exWb24fg=";
};
nativeBuildInputs = [ hatchling ];
nativeCheckInputs = [
flask
httpx
pydantic
pytestCheckHook
rich
setuptools
];
propagatedBuildInputs = [
pyyaml
essentials
markupsafe
];
optional-dependencies = {
full = [
click
jinja2
rich
httpx
];
};
pythonRelaxDeps = [
"markupsafe"
];
pythonImportsCheck = [ "openapidocs" ];
meta = {
homepage = "https://github.com/Neoteroi/essentials-openapi";
description = "Functions to handle OpenAPI Documentation";
changelog = "https://github.com/Neoteroi/essentials-openapi/releases/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
aldoborrero
zimbatm
];
};
}