nixpkgs/pkgs/development/python-modules/click-odoo-contrib/default.nix
Martin Weinelt 8056f9250c
treewide: remove redundant SETUPTOOLS_SCM_PRETEND_VERSION usage
The setuptools-scm packages gained a setup hook, that sets it to the
derivation version automatically, so setting it to that manually has
become redundant.

This also affects downstream consumers of setuptools-scm, like hatch-vcs
or flit-scm.
2023-12-20 20:16:39 +01:00

42 lines
905 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 ];
};
}