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

View File

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