python2.pkgs.pexpect: don't recompile bytecode

This commit is contained in:
Frederik Rietdijk 2020-06-15 19:02:19 +02:00
parent 80f321e834
commit 7e5769c70c
1 changed files with 7 additions and 2 deletions

View File

@ -2,9 +2,10 @@
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, ptyprocess , ptyprocess
, isPy3k
}: }:
buildPythonPackage rec { buildPythonPackage (rec {
pname = "pexpect"; pname = "pexpect";
version = "4.8.0"; version = "4.8.0";
@ -40,4 +41,8 @@ buildPythonPackage rec {
any platform that supports the standard Python pty module. any platform that supports the standard Python pty module.
''; '';
}; };
} # TODO: move into main set, this was to avoid a rebuild
} // lib.optionalAttrs (!isPy3k ) {
# syntax error in _async module, likely intended only for Python 3.
dontUsePythonRecompileBytecode = !isPy3k;
})