depot/third_party/nixpkgs/pkgs/development/python-modules/click-odoo-contrib/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

40 lines
910 B
Nix

{
buildPythonPackage,
click-odoo,
fetchPypi,
importlib-resources,
lib,
manifestoo-core,
nix-update-script,
pythonOlder,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "click-odoo-contrib";
version = "1.18.1";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-3gusvy3d6kgmyBY+bmXB6lbWk7qxJIuHALZtug1WLzo=";
};
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 ];
};
}