nixpkgs/pkgs/development/python-modules/click/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1.0 KiB
Nix
Raw Normal View History

2021-06-02 20:14:33 +01:00
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, importlib-metadata
, pytestCheckHook
# large-rebuild downstream dependencies and applications
, flask
, black
, magic-wormhole
, mitmproxy
, typer
2021-06-02 20:14:33 +01:00
}:
2018-03-31 17:30:40 +01:00
buildPythonPackage rec {
pname = "click";
version = "8.1.3";
2022-03-29 15:49:35 +01:00
disabled = pythonOlder "3.7";
2018-03-31 17:30:40 +01:00
src = fetchPypi {
2020-03-31 15:43:05 +01:00
inherit pname version;
hash = "sha256-doLcivswKXABZ0V16gDRgU2AjWo2r0Fagr1IHTe6e44=";
2018-03-31 17:30:40 +01:00
};
2021-06-02 20:14:33 +01:00
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
importlib-metadata
];
nativeCheckInputs = [
2021-06-02 20:14:33 +01:00
pytestCheckHook
];
2018-03-31 17:30:40 +01:00
passthru.tests = {
inherit black flask magic-wormhole mitmproxy typer;
};
meta = with lib; {
2020-03-31 15:43:05 +01:00
homepage = "https://click.palletsprojects.com/";
2018-03-31 17:30:40 +01:00
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 = licenses.bsd3;
maintainers = with maintainers; [ SuperSandro2000 ];
2018-03-31 17:30:40 +01:00
};
}