mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
36 lines
917 B
Nix
36 lines
917 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, substituteAll, locale, pytest }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "click";
|
|
version = "7.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "5b94b49521f6456670fdb30cd82a4eca9412788a93fa6dd6df72c94d5a8ff2d7";
|
|
};
|
|
|
|
patches = stdenv.lib.optional (stdenv.lib.versionAtLeast version "6.7") (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;
|
|
};
|
|
}
|