python3Packages.deap: remove 2to3-related code
This commit is contained in:
parent
e83df5fda7
commit
627c3b44e4
1 changed files with 1 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi, python, numpy, matplotlib, nose }:
|
{ lib, buildPythonPackage, fetchPypi, numpy, matplotlib, nose }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "deap";
|
pname = "deap";
|
||||||
|
@ -9,16 +9,8 @@ buildPythonPackage rec {
|
||||||
sha256 = "sha256-h3LxsP/wQtXlFrCuusLHBiQwRap9DejguGWPOAGBzzE=";
|
sha256 = "sha256-h3LxsP/wQtXlFrCuusLHBiQwRap9DejguGWPOAGBzzE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
sed -i '/use_2to3=True/d' setup.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
propagatedBuildInputs = [ numpy matplotlib ];
|
propagatedBuildInputs = [ numpy matplotlib ];
|
||||||
|
|
||||||
preBuild = ''
|
|
||||||
2to3 -wn deap
|
|
||||||
'';
|
|
||||||
|
|
||||||
checkInputs = [ nose ];
|
checkInputs = [ nose ];
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
nosetests --verbosity=3
|
nosetests --verbosity=3
|
||||||
|
|
Loading…
Reference in a new issue