1{ lib, buildPythonPackage, fetchPypi, locale, pytestCheckHook }: 2 3buildPythonPackage rec { 4 pname = "click"; 5 version = "7.1.2"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a"; 10 }; 11 12 postPatch = '' 13 substituteInPlace src/click/_unicodefun.py \ 14 --replace "'locale'" "'${locale}/bin/locale'" 15 ''; 16 17 checkInputs = [ pytestCheckHook ]; 18 19 meta = with lib; { 20 homepage = "https://click.palletsprojects.com/"; 21 description = "Create beautiful command line interfaces in Python"; 22 longDescription = '' 23 A Python package for creating beautiful command line interfaces in a 24 composable way, with as little code as necessary. 25 ''; 26 license = licenses.bsd3; 27 }; 28}