about summary refs log tree commit diff
path: root/pkgs/development/python-modules/manifestoo/default.nix
blob: 140c78d26632d9322129601cec1861efd8debdd8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
  buildPythonPackage,
  fetchPypi,
  hatch-vcs,
  importlib-metadata,
  lib,
  manifestoo-core,
  nix-update-script,
  pytestCheckHook,
  pythonOlder,
  textual,
  typer,
  typing-extensions,
}:

buildPythonPackage rec {
  pname = "manifestoo";
  version = "0.7";
  format = "pyproject";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-gCGchc+fShBgt6fVJAx80+QnH+vxWo3jsIyePkFwhYE=";
  };

  nativeBuildInputs = [ hatch-vcs ];

  nativeCheckInputs = [ pytestCheckHook ];

  propagatedBuildInputs =
    [
      manifestoo-core
      textual
      typer
    ]
    ++ typer.passthru.optional-dependencies.all
    ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];

  passthru.updateScript = nix-update-script { };

  meta = with lib; {
    description = "Tool to reason about Odoo addons manifests";
    homepage = "https://github.com/acsone/manifestoo";
    license = licenses.mit;
    maintainers = with maintainers; [ yajo ];
  };
}