mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-27 14:34:33 +00:00
python3Packages.deap: fix build and tests
This commit is contained in:
parent
c3d2a450fe
commit
79db6d5b9b
@ -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 New Issue
Block a user