pypy2Packages.nose, pypy37Packages.nose: fix build by not trying to use 2to3

This commit is contained in:
Michael Raskin 2022-04-08 17:08:59 +02:00
parent 9e43c553f1
commit 4c1dfa7b27

View file

@ -23,7 +23,9 @@ buildPythonPackage rec {
--replace "from setuptools.command.build_py import Mixin2to3" "from distutils.util import Mixin2to3"
'';
preBuild = ''
preBuild = lib.optionalString
((python.isPy3k or false) && (python.pname != "pypy3"))
''
2to3 -wn nose functional_tests unit_tests
'';