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";
|
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 ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue