python3Packages.deap: remove 2to3-related code

This commit is contained in:
Ben Darwin 2022-09-21 23:50:58 -04:00 committed by Frederik Rietdijk
parent e83df5fda7
commit 627c3b44e4

View file

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, python, numpy, matplotlib, nose }:
{ lib, buildPythonPackage, fetchPypi, numpy, matplotlib, nose }:
buildPythonPackage rec {
pname = "deap";
@ -9,16 +9,8 @@ buildPythonPackage rec {
sha256 = "sha256-h3LxsP/wQtXlFrCuusLHBiQwRap9DejguGWPOAGBzzE=";
};
postPatch = ''
sed -i '/use_2to3=True/d' setup.py
'';
propagatedBuildInputs = [ numpy matplotlib ];
preBuild = ''
2to3 -wn deap
'';
checkInputs = [ nose ];
checkPhase = ''
nosetests --verbosity=3