Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 25 lines 649 B view raw
1{ stdenv, isPy27, buildPythonPackage, fetchPypi, scikitlearn }: 2 3buildPythonPackage rec { 4 pname = "mlrose"; 5 version = "1.3.0"; 6 disabled = isPy27; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "cec83253bf6da67a7fb32b2c9ae13e9dbc6cfbcaae2aa3107993e69e9788f15e"; 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}