Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 25 lines 637 B view raw
1{ stdenv, isPy27, buildPythonPackage, fetchPypi, scikitlearn }: 2 3buildPythonPackage rec { 4 pname = "mlrose"; 5 version = "1.2.0"; 6 disabled = isPy27; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "0vsvqrf1wbbj8i198rqd87hf8rlq7fmv8mmibv8f9rhj0w8729p5"; 11 }; 12 13 propagatedBuildInputs = [ scikitlearn ]; 14 15 postPatch = '' 16 sed -i 's,sklearn,scikit-learn,g' setup.py 17 ''; 18 19 meta = with stdenv.lib; { 20 description = "Machine Learning, Randomized Optimization and SEarch"; 21 homepage = "https://github.com/gkhayes/mlrose"; 22 license = licenses.bsd3; 23 maintainers = with maintainers; [ abbradar ]; 24 }; 25}