diff options
author | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2019-07-14 18:19:35 -0400 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2019-07-17 10:02:03 +0200 |
commit | ceaf12fd6e5b3b1a6feeb6b324b0d08c8ba5957b (patch) | |
tree | 6a75bbf3555f367ed77282266eab000a6582fe88 /pkgs/development/python-modules/pygbm | |
parent | 1765a678fbfa8ed8ea0b4563ec872f500b9790e1 (diff) |
pythonPackages.pygbm: init at 0.1.0
Diffstat (limited to 'pkgs/development/python-modules/pygbm')
-rw-r--r-- | pkgs/development/python-modules/pygbm/default.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pygbm/default.nix b/pkgs/development/python-modules/pygbm/default.nix new file mode 100644 index 0000000000000..6e4c70aaaf139 --- /dev/null +++ b/pkgs/development/python-modules/pygbm/default.nix @@ -0,0 +1,46 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, scipy +, numpy +, numba +, scikitlearn +, pytest +, pythonOlder +}: + +buildPythonPackage rec { + pname = "pygbm"; + version = "0.1.0"; + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "ogrisel"; + repo = pname; + rev = "v${version}"; + sha256 = "1qg2md86d0z5aa6jn8kj3rxsippsqsccx1dbraspdsdkycncvww3"; + }; + + propagatedBuildInputs = [ + scipy + numpy + numba + scikitlearn + ]; + + checkInputs = [ + pytest + ]; + + checkPhase = '' + # numerical rounding error in test + pytest -k "not test_derivatives" + ''; + + meta = with lib; { + description = "Experimental Gradient Boosting Machines in Python"; + homepage = https://github.com/ogrisel/pygbm; + license = licenses.mit; + maintainers = [ maintainers.costrouc ]; + }; +} |