2023-10-09 19:29:22 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, click-odoo
|
|
|
|
, fetchPypi
|
|
|
|
, importlib-resources
|
|
|
|
, lib
|
|
|
|
, manifestoo-core
|
|
|
|
, nix-update-script
|
|
|
|
, pythonOlder
|
|
|
|
, setuptools-scm
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "click-odoo-contrib";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.18.1";
|
2023-10-09 19:29:22 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-3gusvy3d6kgmyBY+bmXB6lbWk7qxJIuHALZtug1WLzo=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click-odoo
|
|
|
|
manifestoo-core
|
|
|
|
] ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ];
|
|
|
|
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "click_odoo_contrib" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Collection of community-maintained scripts for Odoo maintenance";
|
|
|
|
homepage = "https://github.com/acsone/click-odoo-contrib";
|
|
|
|
license = licenses.lgpl3Only;
|
|
|
|
maintainers = with maintainers; [ yajo ];
|
|
|
|
};
|
|
|
|
}
|