2018-06-11 18:46:46 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, substituteAll, locale, pytest }:
|
2018-03-31 16:30:40 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "click";
|
|
|
|
version = "6.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "02qkfpykbq35id8glfgwc38yc430427yd05z1wc5cnld8zgicmgi";
|
|
|
|
};
|
|
|
|
|
2018-06-19 17:01:04 +00:00
|
|
|
patches = stdenv.lib.optional (stdenv.lib.versionAtLeast version "6.7") (substituteAll {
|
2018-06-19 17:00:39 +00:00
|
|
|
src = ./fix-paths.patch;
|
|
|
|
locale = "${locale}/bin/locale";
|
|
|
|
});
|
2018-06-11 14:45:25 +00:00
|
|
|
|
2018-03-31 16:30:40 +00:00
|
|
|
buildInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
# https://github.com/pallets/click/issues/823
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|