python3Packages.deap: fix build and tests
This commit is contained in:
parent
c3d2a450fe
commit
79db6d5b9b
1 changed files with 9 additions and 1 deletions
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue