default.nix (770B)
1 { lib, python3Packages, substituteAll, locale }: 2 3 python3Packages.buildPythonPackage rec { 4 pname = "click"; 5 version = "6.7"; 6 7 src = python3Packages.fetchPypi { 8 inherit pname version; 9 hash = "sha256-8VUW30eNWlYYD7+A5o8gYBDm0WD8OfpQi2XgNf11Ews="; 10 }; 11 12 patches = lib.optional (lib.versionAtLeast version "6.7") ( 13 substituteAll { 14 src = ./fix-paths.patch; 15 locale = "${locale}/bin/locale"; 16 } 17 ); 18 19 nativeCheckInputs = with python3Packages; [ pytestCheckHook ]; 20 21 disabledTests = [ 22 # https://github.com/pallets/click/issues/823 23 "test_legacy_callbacks" 24 ]; 25 26 meta = with lib; { 27 homepage = "http://click.pocoo.org/"; 28 description = "Create beautiful command line interfaces in Python"; 29 license = licenses.bsd3; 30 }; 31 }