nixpkgs/pkgs/development/python-modules/click-odoo/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

36 lines
691 B
Nix

{ buildPythonPackage
, click
, fetchPypi
, lib
, nix-update-script
, setuptools-scm
}:
buildPythonPackage rec {
pname = "click-odoo";
version = "1.6.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-zyfgsHzIoz4lnqANe63b2oqgD/oxBbTbJYEedfSHWQ8=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
click
];
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Odoo scripting helper library";
mainProgram = "click-odoo";
homepage = "https://github.com/acsone/click-odoo";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ yajo ];
};
}