nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, buildPythonPackage, fetchPypi, python, numpy, matplotlib, nose }:
2
3buildPythonPackage rec {
4 pname = "deap";
5 version = "1.3.1";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "0bvshly83c4h5jhxaa97z192viczymz5fxp6vl8awjmmrs9l9x8i";
10 };
11
12 postPatch = ''
13 sed -i '/use_2to3=True/d' setup.py
14 '';
15
16 propagatedBuildInputs = [ numpy matplotlib ];
17
18 preBuild = ''
19 2to3 -wn deap
20 '';
21
22 checkInputs = [ nose ];
23 checkPhase = ''
24 nosetests --verbosity=3
25 '';
26
27 meta = with lib; {
28 description = "DEAP is a novel evolutionary computation framework for rapid prototyping and testing of ideas.";
29 homepage = "https://github.com/DEAP/deap";
30 license = licenses.lgpl3;
31 maintainers = with maintainers; [ psyanticy ];
32 };
33
34}
35