Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667{ lib, buildPythonPackage, fetchFromGitHub, importlib-metadata, pytestCheckHook,
# large-rebuild downstream dependencies and applications flask, black, magic-wormhole, mitmproxy, typer, flit-core,}:
buildPythonPackage rec { pname = "click"; version = "8.4.2"; pyproject = true;
src = fetchFromGitHub { owner = "pallets"; repo = "click"; tag = version; hash = "sha256-66JFGGwPXeCU7Fbqsrsq3giv6qsea1ZKGmZYPu9rcog="; };
build-system = [ flit-core ];
nativeCheckInputs = [ pytestCheckHook ];
pytestFlags = [ "-Wignore::pytest.PytestRemovedIn10Warning" ];
disabledTests = [ # for some reason the tests fail to execute cat, even though they run with less just fine, # even adding coreutils to nativeCheckInputs explicitly does not change anything "test_echo_via_pager" # test fails with filename normalization on zfs "test_file_surrogates" ];
passthru.tests = { inherit black flask magic-wormhole mitmproxy typer ; };
meta = { changelog = "https://github.com/pallets/click/blob/${src.tag}/CHANGES.rst"; homepage = "https://click.palletsprojects.com/"; description = "Create beautiful command line interfaces in Python"; longDescription = '' A Python package for creating beautiful command line interfaces in a composable way, with as little code as necessary. ''; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ nickcao ]; };}