mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +03:00
Merge pull request #4578 from offlinehacker/pkgs/pythonPackages/scikit_algo
pythonPackages: scikit-learn and pyalgotrade
This commit is contained in:
commit
f5c3ad443b
@ -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}";
|
||||
|
Loading…
Reference in New Issue
Block a user