diff --git a/pkgs/development/python-modules/oca-port/default.nix b/pkgs/development/python-modules/oca-port/default.nix new file mode 100644 index 000000000000..0a603b0b91c8 --- /dev/null +++ b/pkgs/development/python-modules/oca-port/default.nix @@ -0,0 +1,46 @@ +{ buildPythonPackage +, click +, fetchPypi +, gitpython +, lib +, nix-update-script +, requests +, setuptools-scm +, setuptools +}: + +buildPythonPackage rec { + pname = "oca-port"; + version = "0.13"; + format = "pyproject"; + + src = fetchPypi { + inherit version; + pname = "oca_port"; + hash = "sha256-9ihqjnGdBPasiRD2pZeaiibwzFQKI9t+s/zMzvyLLHQ="; + }; + + nativeBuildInputs = [ + setuptools + setuptools-scm + ]; + + propagatedBuildInputs = [ + click + gitpython + requests + ]; + + SETUPTOOLS_SCM_PRETEND_VERSION = version; + + passthru.updateScript = nix-update-script { }; + + pythonImportsCheck = [ "oca_port" ]; + + meta = with lib; { + description = "Tool helping to port an addon or missing commits of an addon from one branch to another"; + homepage = "https://github.com/OCA/oca-port"; + license = licenses.lgpl3Plus; + maintainers = with maintainers; [ yajo ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 77cc4ad2c095..5a1e083be071 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6956,6 +6956,8 @@ self: super: with self; { obspy = callPackage ../development/python-modules/obspy { }; + oca-port = callPackage ../development/python-modules/oca-port { }; + oci = callPackage ../development/python-modules/oci { }; ocifs = callPackage ../development/python-modules/ocifs { };