diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-01-18 14:27:48 +0100 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-01-23 01:09:38 +0100 |
commit | 79db6d5b9b7b512cce61fc7220836e8f0e9224e1 (patch) | |
tree | 8d17de369a35d14ab23181a95b19056bf6cdf1c4 /pkgs/development/python-modules/deap | |
parent | c3d2a450fe6f345c73f66b9a904e152bcedfebb8 (diff) |
python3Packages.deap: fix build and tests
Diffstat (limited to 'pkgs/development/python-modules/deap')
-rw-r--r-- | pkgs/development/python-modules/deap/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/deap/default.nix b/pkgs/development/python-modules/deap/default.nix index f260727b87a61..5efad065011d4 100644 --- a/pkgs/development/python-modules/deap/default.nix +++ b/pkgs/development/python-modules/deap/default.nix @@ -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; { |