1{ stdenv, buildPythonPackage, fetchFromGitHub, numpy, scipy, deap, scikitlearn, python }: 2 3buildPythonPackage rec { 4 pname = "sklearn-deap"; 5 version = "0.2.2"; 6 7 # No tests in Pypi 8 src = fetchFromGitHub { 9 owner = "rsteca"; 10 repo = pname; 11 rev = "${version}"; 12 sha256 = "01ynmzxg181xhv2d7bs53zjvk9x2qpxix32sspq54mpigxh13ava"; 13 }; 14 15 propagatedBuildInputs = [ numpy scipy deap scikitlearn ]; 16 17 checkPhase = '' 18 ${python.interpreter} test.py 19 ''; 20 21 meta = with stdenv.lib; { 22 description = "Use evolutionary algorithms instead of gridsearch in scikit-learn"; 23 homepage = https://github.com/rsteca/sklearn-deap; 24 license = licenses.lgpl3; 25 maintainers = with maintainers; [ psyanticy ]; 26 }; 27} 28