python click: make patch conditional

Make sure we are not using the old version of click when applying the patch.
This commit is contained in:
Matthew Justin Bauer 2018-06-19 13:00:39 -04:00 committed by GitHub
parent bcc60fad86
commit c764718966
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 6 deletions

View File

@ -9,12 +9,10 @@ buildPythonPackage rec {
sha256 = "02qkfpykbq35id8glfgwc38yc430427yd05z1wc5cnld8zgicmgi"; sha256 = "02qkfpykbq35id8glfgwc38yc430427yd05z1wc5cnld8zgicmgi";
}; };
patches = [ patches = stdenv.lib.optional (lib.versionAtLeast version "6.7") (substituteAll {
(substituteAll { src = ./fix-paths.patch;
src = ./fix-paths.patch; locale = "${locale}/bin/locale";
locale = "${locale}/bin/locale"; });
})
];
buildInputs = [ pytest ]; buildInputs = [ pytest ];