python3Packages.lexid: disable lib3to6 usage to fix build

This commit is contained in:
Luke Granger-Brown 2021-09-11 02:57:24 +00:00
parent 83d16774f2
commit 87a72a58b7

View File

@ -9,6 +9,12 @@ buildPythonPackage rec {
sha256 = "509a3a4cc926d3dbf22b203b18a4c66c25e6473fb7c0e0d30374533ac28bafe5";
};
prePatch = ''
# Disable lib3to6, since we're only building this on 3.6+ anyway.
substituteInPlace setup.py \
--replace 'if any(arg.startswith("bdist") for arg in sys.argv):' 'if False:'
'';
propagatedBuildInputs = [ click ];
checkInputs = [ pytestCheckHook ];