about summary refs log tree commit diff
path: root/pkgs/development/python-modules/manifestoo
diff options
context:
space:
mode:
authorJairo Llopis <yajo.sk8@gmail.com>2023-07-06 11:56:24 +0100
committerJairo Llopis <yajo.sk8@gmail.com>2023-07-06 11:56:24 +0100
commitcb0966b94f5e112f262fafd70ddbc833928ecd59 (patch)
treee726e75c7a869589b50f679c66fe4318189c04f8 /pkgs/development/python-modules/manifestoo
parentdd4cb577d92212e76e5a29745fccef5fc01f7e03 (diff)
python3Packages.manifestoo: init at 0.7
Diffstat (limited to 'pkgs/development/python-modules/manifestoo')
-rw-r--r--pkgs/development/python-modules/manifestoo/default.nix51
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/manifestoo/default.nix b/pkgs/development/python-modules/manifestoo/default.nix
new file mode 100644
index 0000000000000..c9499eb113103
--- /dev/null
+++ b/pkgs/development/python-modules/manifestoo/default.nix
@@ -0,0 +1,51 @@
+{ 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 ];
+
+  SETUPTOOLS_SCM_PRETEND_VERSION = version;
+
+  passthru.updateScript = nix-update-script { };
+
+  meta = with lib; {
+    description = "A tool to reason about Odoo addons manifests";
+    homepage = "https://github.com/acsone/manifestoo";
+    license = licenses.mit;
+    maintainers = with maintainers; [ yajo ];
+  };
+}