2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
hatch-vcs,
|
|
|
|
importlib-metadata,
|
|
|
|
lib,
|
|
|
|
manifestoo-core,
|
|
|
|
nix-update-script,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
textual,
|
|
|
|
typer,
|
|
|
|
typing-extensions,
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "manifestoo";
|
|
|
|
version = "0.7";
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-gCGchc+fShBgt6fVJAx80+QnH+vxWo3jsIyePkFwhYE=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ hatch-vcs ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs =
|
|
|
|
[
|
|
|
|
manifestoo-core
|
|
|
|
textual
|
|
|
|
typer
|
|
|
|
]
|
|
|
|
++ typer.passthru.optional-dependencies.all
|
|
|
|
++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Tool to reason about Odoo addons manifests";
|
2023-10-09 19:29:22 +00:00
|
|
|
homepage = "https://github.com/acsone/manifestoo";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ yajo ];
|
|
|
|
};
|
|
|
|
}
|