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

29 lines
775 B
Nix
Raw Normal View History

2020-03-31 15:43:05 +01:00
{ lib, buildPythonPackage, fetchPypi, locale, pytestCheckHook }:
2018-03-31 17:30:40 +01:00
buildPythonPackage rec {
pname = "click";
2020-05-09 11:01:45 +01:00
version = "7.1.2";
2018-03-31 17:30:40 +01:00
src = fetchPypi {
2020-03-31 15:43:05 +01:00
inherit pname version;
2020-05-09 11:01:45 +01:00
sha256 = "d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a";
2018-03-31 17:30:40 +01:00
};
postPatch = ''
2020-03-31 15:43:05 +01:00
substituteInPlace src/click/_unicodefun.py \
--replace "'locale'" "'${locale}/bin/locale'"
'';
2020-03-31 15:43:05 +01:00
checkInputs = [ pytestCheckHook ];
2018-03-31 17:30:40 +01:00
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;
};
}