depot/third_party/nixpkgs/pkgs/development/python-modules/click-odoo-contrib/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

43 lines
950 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.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-dLvrj3yTgfdlW3kEmZtXri3zGlBGQZhsPHzO0rf7foQ=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
click-odoo
manifestoo-core
] ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ];
SETUPTOOLS_SCM_PRETEND_VERSION = version;
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 ];
};
}