diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2020-06-15 18:56:24 +0200 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2020-06-15 18:56:24 +0200 |
commit | 80f321e834d2b77159a76e4995c045b59df5952c (patch) | |
tree | 4202fa8f9e747ecc0defa18aaf28648f2396857c /pkgs/development/python-modules/linecache2 | |
parent | d9e0820393b007e8aa404aff674cb21bf6803c00 (diff) | |
download | nixpkgs-80f321e834d2b77159a76e4995c045b59df5952c.tar nixpkgs-80f321e834d2b77159a76e4995c045b59df5952c.tar.gz nixpkgs-80f321e834d2b77159a76e4995c045b59df5952c.tar.bz2 nixpkgs-80f321e834d2b77159a76e4995c045b59df5952c.tar.lz nixpkgs-80f321e834d2b77159a76e4995c045b59df5952c.tar.xz nixpkgs-80f321e834d2b77159a76e4995c045b59df5952c.tar.zst nixpkgs-80f321e834d2b77159a76e4995c045b59df5952c.zip |
python2.pkgs.linecache2: don't recompile bytecode
Diffstat (limited to 'pkgs/development/python-modules/linecache2')
-rw-r--r-- | pkgs/development/python-modules/linecache2/default.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/linecache2/default.nix b/pkgs/development/python-modules/linecache2/default.nix index 9890d382742..a2c7080e270 100644 --- a/pkgs/development/python-modules/linecache2/default.nix +++ b/pkgs/development/python-modules/linecache2/default.nix @@ -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; +}) |