about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJairo Llopis <jairo@moduon.team>2024-04-15 11:29:42 +0100
committerJairo Llopis <jairo@moduon.team>2024-04-15 12:08:35 +0100
commit68d999f63d304bd3c0bf4335fa552677947dba50 (patch)
treeeddeb9fc8be39ec43b5664cbd684b16e9bba3dcf
parentdbc39d913486836a2859e344f30c4f96bd0d1b94 (diff)
downloadnixlib-68d999f63d304bd3c0bf4335fa552677947dba50.tar
nixlib-68d999f63d304bd3c0bf4335fa552677947dba50.tar.gz
nixlib-68d999f63d304bd3c0bf4335fa552677947dba50.tar.bz2
nixlib-68d999f63d304bd3c0bf4335fa552677947dba50.tar.lz
nixlib-68d999f63d304bd3c0bf4335fa552677947dba50.tar.xz
nixlib-68d999f63d304bd3c0bf4335fa552677947dba50.tar.zst
nixlib-68d999f63d304bd3c0bf4335fa552677947dba50.zip
python3Packages.hatch-odoo: init at 0.1
@moduon MT-1075
-rw-r--r--pkgs/development/python-modules/hatch-odoo/default.nix40
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/hatch-odoo/default.nix b/pkgs/development/python-modules/hatch-odoo/default.nix
new file mode 100644
index 000000000000..91a0ef99efbd
--- /dev/null
+++ b/pkgs/development/python-modules/hatch-odoo/default.nix
@@ -0,0 +1,40 @@
+{
+  buildPythonPackage,
+  fetchFromGitHub,
+  hatch-vcs,
+  hatchling,
+  lib,
+  manifestoo-core,
+  pythonOlder,
+  tomli,
+}:
+buildPythonPackage rec {
+  pname = "hatch-odoo";
+  version = "0.1";
+  format = "pyproject";
+
+  src = fetchFromGitHub {
+    owner = "acsone";
+    repo = pname;
+    rev = version;
+    sha256 = "sha256-+KM3tpeQ4e53bVhUeWUSfyuIzPRvWkjZi4S/gH4UHVY=";
+  };
+
+  buildInputs = [hatch-vcs];
+
+  propagatedBuildInputs =
+    [
+      hatchling
+      manifestoo-core
+    ]
+    ++ lib.optionals (pythonOlder "3.11") [
+      tomli
+    ];
+
+  meta = with lib; {
+    description = "A hatch plugin to develop and package Odoo projects";
+    homepage = "https://github.com/acsone/hatch-odoo";
+    license = licenses.mit;
+    maintainers = with maintainers; [yajo];
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 9b12de730281..82e7dc323bd6 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -5255,6 +5255,8 @@ self: super: with self; {
 
   hatch-jupyter-builder = callPackage ../development/python-modules/hatch-jupyter-builder { };
 
+  hatch-odoo = callPackage ../development/python-modules/hatch-odoo { };
+
   hatch-vcs = callPackage ../development/python-modules/hatch-vcs { };
 
   hatch-nodejs-version = callPackage ../development/python-modules/hatch-nodejs-version { };