3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/click/default.nix
Matthew Bauer 1b46c4b2a4 click: fix locale in darwin
unixtools.locale is used
2018-06-11 14:47:48 -04:00

38 lines
859 B
Nix

{ stdenv, buildPythonPackage, fetchPypi, substituteAll, locale, pytest }:
buildPythonPackage rec {
pname = "click";
version = "6.7";
src = fetchPypi {
inherit pname version;
sha256 = "02qkfpykbq35id8glfgwc38yc430427yd05z1wc5cnld8zgicmgi";
};
patches = [
(substituteAll {
src = ./fix-paths.patch;
locale = "${locale}/bin/locale";
})
];
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;
};
}