nixpkgs/pkgs/development/python-modules/mlrose/default.nix

26 lines
639 B
Nix
Raw Normal View History

{ lib, isPy27, buildPythonPackage, fetchPypi, scikitlearn }:
2019-06-23 20:49:09 +01:00
buildPythonPackage rec {
pname = "mlrose";
2019-12-19 19:31:15 +00:00
version = "1.3.0";
disabled = isPy27;
2019-06-23 20:49:09 +01:00
src = fetchPypi {
inherit pname version;
2019-12-19 19:31:15 +00:00
sha256 = "cec83253bf6da67a7fb32b2c9ae13e9dbc6cfbcaae2aa3107993e69e9788f15e";
2019-06-23 20:49:09 +01:00
};
propagatedBuildInputs = [ scikitlearn ];
postPatch = ''
sed -i 's,sklearn,scikit-learn,g' setup.py
'';
meta = with lib; {
2019-06-23 20:49:09 +01:00
description = "Machine Learning, Randomized Optimization and SEarch";
homepage = "https://github.com/gkhayes/mlrose";
license = licenses.bsd3;
maintainers = with maintainers; [ abbradar ];
};
}