1{ buildPythonPackage
2, fetchPypi
3, hatch-vcs
4, importlib-metadata
5, lib
6, manifestoo-core
7, nix-update-script
8, pytestCheckHook
9, pythonOlder
10, textual
11, typer
12, typing-extensions
13}:
14
15buildPythonPackage rec {
16 pname = "manifestoo";
17 version = "0.7";
18 format = "pyproject";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-gCGchc+fShBgt6fVJAx80+QnH+vxWo3jsIyePkFwhYE=";
23 };
24
25 nativeBuildInputs = [
26 hatch-vcs
27 ];
28
29 nativeCheckInputs = [
30 pytestCheckHook
31 ];
32
33 propagatedBuildInputs = [
34 manifestoo-core
35 textual
36 typer
37 ]
38 ++ typer.passthru.optional-dependencies.all
39 ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
40
41 SETUPTOOLS_SCM_PRETEND_VERSION = version;
42
43 passthru.updateScript = nix-update-script { };
44
45 meta = with lib; {
46 description = "A tool to reason about Odoo addons manifests";
47 homepage = "https://github.com/acsone/manifestoo";
48 license = licenses.mit;
49 maintainers = with maintainers; [ yajo ];
50 };
51}