From 87a72a58b707822ae2a0ae15c776c87a3e9f487e Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sat, 11 Sep 2021 02:57:24 +0000 Subject: [PATCH] python3Packages.lexid: disable lib3to6 usage to fix build --- pkgs/development/python-modules/lexid/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/lexid/default.nix b/pkgs/development/python-modules/lexid/default.nix index 400643383773..5ef175d57878 100644 --- a/pkgs/development/python-modules/lexid/default.nix +++ b/pkgs/development/python-modules/lexid/default.nix @@ -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 ];