2018-10-26 02:58:46 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-03-15 21:18:57 +00:00
|
|
|
, matplotlib
|
2018-10-26 02:58:46 +01:00
|
|
|
, numpy
|
2019-03-15 21:18:57 +00:00
|
|
|
, python-dateutil
|
2018-10-26 02:58:46 +01:00
|
|
|
, pytz
|
2019-03-15 21:18:57 +00:00
|
|
|
, requests
|
|
|
|
, retrying
|
|
|
|
, scipy
|
|
|
|
, six
|
|
|
|
, tornado
|
|
|
|
, tweepy
|
|
|
|
, ws4py
|
2018-10-26 02:58:46 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyalgotrade";
|
2018-11-04 10:35:11 +00:00
|
|
|
version = "0.20";
|
2018-10-26 02:58:46 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2019-03-15 21:18:57 +00:00
|
|
|
pname = "PyAlgoTrade";
|
|
|
|
inherit version;
|
2018-11-04 10:35:11 +00:00
|
|
|
sha256 = "7927c87af202869155280a93ff6ee934bb5b46cdb1f20b70f7407337f8541cbd";
|
2018-10-26 02:58:46 +01:00
|
|
|
};
|
|
|
|
|
2019-03-15 21:18:57 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
matplotlib numpy python-dateutil pytz requests
|
|
|
|
retrying scipy six tornado tweepy ws4py
|
|
|
|
];
|
|
|
|
|
|
|
|
# no tests in PyPI tarball
|
|
|
|
doCheck = false;
|
2018-10-26 02:58:46 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Python Algorithmic Trading";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://gbeced.github.io/pyalgotrade/";
|
2018-10-26 02:58:46 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|