aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/pygbm/default.nix
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2019-10-05 12:43:18 +0000
committerKatharina Fey <kookie@spacekookie.de>2019-10-05 12:44:52 +0000
commitcf85056ba64caf3267d43255ef4a1243e9c8ee3b (patch)
tree3051519e9c8275b870aac43f80af875715c9d124 /nixpkgs/pkgs/development/python-modules/pygbm/default.nix
parent1148b1d122bc03e9a3665856c9b7bb96bd4e3994 (diff)
parent2436c27541b2f52deea3a4c1691216a02152e729 (diff)
Add 'nixpkgs/' from commit '2436c27541b2f52deea3a4c1691216a02152e729'
git-subtree-dir: nixpkgs git-subtree-mainline: 1148b1d122bc03e9a3665856c9b7bb96bd4e3994 git-subtree-split: 2436c27541b2f52deea3a4c1691216a02152e729
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pygbm/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/pygbm/default.nix46
1 files changed, 46 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pygbm/default.nix b/nixpkgs/pkgs/development/python-modules/pygbm/default.nix
new file mode 100644
index 00000000000..6e4c70aaaf1
--- /dev/null
+++ b/nixpkgs/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 ];
+ };
+}