python3Packages.deap: fix build and tests

This commit is contained in:
Martin Weinelt 2022-01-18 14:27:48 +01:00
parent c3d2a450fe
commit 79db6d5b9b

View file

@ -9,11 +9,19 @@ buildPythonPackage rec {
sha256 = "0bvshly83c4h5jhxaa97z192viczymz5fxp6vl8awjmmrs9l9x8i";
};
postPatch = ''
sed -i '/use_2to3=True/d' setup.py
'';
propagatedBuildInputs = [ numpy matplotlib ];
preBuild = ''
2to3 -wn deap
'';
checkInputs = [ nose ];
checkPhase = ''
${python.interpreter} setup.py nosetests --verbosity=3
nosetests --verbosity=3
'';
meta = with lib; {