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