nixpkgs/pkgs/development/python-modules/click-completion/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

45 lines
788 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
# propagates
, click
, jinja2
, shellingham
, six
}:
buildPythonPackage rec {
pname = "click-completion";
version = "0.5.2";
format = "setuptools";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "5bf816b81367e638a190b6e91b50779007d14301b3f9f3145d68e3cade7bce86";
};
propagatedBuildInputs = [
click
jinja2
shellingham
six
];
pythonImportsCheck = [
"click_completion"
];
# has no tests
doCheck = false;
meta = with lib; {
description = "Add or enhance bash, fish, zsh and powershell completion in Click";
homepage = "https://github.com/click-contrib/click-completion";
license = licenses.mit;
maintainers = with maintainers; [ mbode ];
};
}