python2.pkgs.linecache2: don't recompile bytecode

This commit is contained in:
Frederik Rietdijk 2020-06-15 18:56:24 +02:00
parent d9e0820393
commit 80f321e834

View file

@ -2,9 +2,10 @@
, buildPythonPackage
, fetchPypi
, pbr
, isPy3k
}:
buildPythonPackage rec {
buildPythonPackage (rec {
pname = "linecache2";
version = "1.0.0";
@ -22,5 +23,8 @@ buildPythonPackage rec {
homepage = "https://github.com/testing-cabal/linecache2";
license = licenses.psfl;
};
}
# TODO: move into main set, this was to avoid a rebuild
} // stdenv.lib.optionalAttrs (!isPy3k ) {
# syntax error in tests. Tests are likely Python 3 only.
dontUsePythonRecompileBytecode = !isPy3k;
})