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:
parent
bcc60fad86
commit
c764718966
@ -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 ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user