Files
nixpkgs/pkgs/development/python-modules/click-default-group/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

40 lines
860 B
Nix

{
lib,
buildPythonPackage,
click,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
flit-core,
}:
buildPythonPackage rec {
pname = "click-default-group";
version = "1.2.4";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "click-contrib";
repo = "click-default-group";
tag = "v${version}";
hash = "sha256-9Vk4LdgLDAWG2YCQPLKR6PIVnULmpOoe7RtS8DgWARo=";
};
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [ click ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "click_default_group" ];
meta = {
description = "Group to invoke a command without explicit subcommand name";
homepage = "https://github.com/click-contrib/click-default-group";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ jakewaksbaum ];
};
}