2019-03-21 10:43:26 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, substituteAll, locale, pytest }:
|
2018-03-31 17:30:40 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "click";
|
2018-11-04 10:34:55 +00:00
|
|
|
version = "7.0";
|
2018-03-31 17:30:40 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2018-11-04 10:38:52 +00:00
|
|
|
pname = "Click";
|
|
|
|
inherit version;
|
2018-11-04 10:34:55 +00:00
|
|
|
sha256 = "5b94b49521f6456670fdb30cd82a4eca9412788a93fa6dd6df72c94d5a8ff2d7";
|
2018-03-31 17:30:40 +01:00
|
|
|
};
|
|
|
|
|
2019-03-21 10:43:26 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace click/_unicodefun.py \
|
|
|
|
--replace "'locale'" "'${locale}/bin/locale'"
|
|
|
|
'';
|
2018-06-11 15:45:25 +01:00
|
|
|
|
2018-03-31 17:30:40 +01:00
|
|
|
buildInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
# https://github.com/pallets/click/issues/823
|
|
|
|
doCheck = false;
|
|
|
|
|
2019-03-21 10:43:26 +00:00
|
|
|
meta = with lib; {
|
2018-03-31 17:30:40 +01:00
|
|
|
homepage = http://click.pocoo.org/;
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|