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.

53 lines
1.1 KiB
Nix
Raw Normal View History

2021-06-02 20:14:33 +01:00
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
2021-06-02 20:14:33 +01:00
, 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.7";
format = "setuptools";
2022-03-29 15:49:35 +01:00
disabled = pythonOlder "3.7";
2018-03-31 17:30:40 +01:00
src = fetchFromGitHub {
owner = "pallets";
repo = "click";
rev = "refs/tags/${version}";
hash = "sha256-8YqIKRyw5MegnRwAO7YTCZateEFQFTH2PHpE8gTPTow=";
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; [ nickcao ];
2018-03-31 17:30:40 +01:00
};
}