1{ stdenv, buildPythonPackage, fetchPypi, python, numpy, matplotlib }:
2
3buildPythonPackage rec {
4 pname = "deap";
5 version = "1.2.2";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "95c63e66d755ec206c80fdb2908851c0bef420ee8651ad7be4f0578e9e909bcf";
10 };
11
12 propagatedBuildInputs = [ numpy matplotlib ];
13
14 checkPhase = ''
15 ${python.interpreter} setup.py nosetests --verbosity=3
16 '';
17
18 meta = with stdenv.lib; {
19 description = "DEAP is a novel evolutionary computation framework for rapid prototyping and testing of ideas.";
20 homepage = https://github.com/DEAP/deap;
21 license = licenses.lgpl3;
22 maintainers = with maintainers; [ psyanticy ];
23 };
24
25}
26