summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2014-11-13 00:17:39 +0300
committerMichael Raskin <7c6f434c@mail.ru>2014-11-13 00:17:39 +0300
commitf5c3ad443bf7068b09b4fec05e0c17e050f3fc16 (patch)
tree676a2a667c76ffa48643e1906813600af8c013b7 /pkgs
parentefe5eb4709d75fd2e2ab2508bf107e38adbaf457 (diff)
parent77aed3433d1cbdbb9c5b8bddb1366a443864da06 (diff)
downloadnixlib-f5c3ad443bf7068b09b4fec05e0c17e050f3fc16.tar
nixlib-f5c3ad443bf7068b09b4fec05e0c17e050f3fc16.tar.gz
nixlib-f5c3ad443bf7068b09b4fec05e0c17e050f3fc16.tar.bz2
nixlib-f5c3ad443bf7068b09b4fec05e0c17e050f3fc16.tar.lz
nixlib-f5c3ad443bf7068b09b4fec05e0c17e050f3fc16.tar.xz
nixlib-f5c3ad443bf7068b09b4fec05e0c17e050f3fc16.tar.zst
nixlib-f5c3ad443bf7068b09b4fec05e0c17e050f3fc16.zip
Merge pull request #4578 from offlinehacker/pkgs/pythonPackages/scikit_algo
pythonPackages: scikit-learn and pyalgotrade
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/top-level/python-packages.nix48
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 08cf2770f31e..50d29af584e9 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -6584,6 +6584,24 @@ let
   };
 
 
+  pyalgotrade = buildPythonPackage {
+    name = "pyalogotrade-0.16";
+
+    src = pkgs.fetchurl {
+      url = "https://pypi.python.org/packages/source/P/PyAlgoTrade/PyAlgoTrade-0.16.tar.gz";
+      md5 = "01d70583ab15eb3bad21027bdeb30ae5";
+    };
+
+    propagatedBuildInputs = with self; [ numpy scipy pytz ];
+
+    meta = {
+      description = "Python Algorithmic Trading";
+      homepage = http://gbeced.github.io/pyalgotrade/;
+      license = stdenv.lib.licenses.asl20;
+    };
+  };
+
+
   pyasn1 = buildPythonPackage ({
     name = "pyasn1-0.1.7";
 
@@ -8376,6 +8394,36 @@ let
   };
 
 
+  scikitlearn = buildPythonPackage {
+    name = "scikit-learn-0.15.2";
+
+    disabled = isPy3k;
+
+    src = pkgs.fetchurl {
+      url = "https://pypi.python.org/packages/source/s/scikit-learn/scikit-learn-0.15.2.tar.gz";
+      md5 = "d9822ad0238e17b382a3c756ea94fe0d";
+    };
+
+    buildInputs = with self; [ nose pillow pkgs.gfortran ];
+    propagatedBuildInputs = with self; [ numpy scipy pkgs.atlas ];
+
+    buildPhase = ''
+      export ATLAS=${pkgs.atlas}
+      ${self.python.executable} setup.py build_ext -i --fcompiler='gnu95'
+    '';
+
+    checkPhase = ''
+      LOCALE_ARCHIVE=${localePath} LC_ALL="en_US.UTF-8" HOME=$TMPDIR ATLAS="" nosetests
+    '';
+
+    meta = {
+      description = "A set of python modules for machine learning and data mining";
+      homepage = http://scikit-learn.org;
+      license = stdenv.lib.licenses.bsd3;
+    };
+  };
+
+
   scripttest = buildPythonPackage rec {
     version = "1.3";
     name = "scripttest-${version}";