Merge pull request #57724 from dotlambda/pyalgotrade-fix
python.pkgs.pyalgotrade: fix build
This commit is contained in:
commit
3172140c19
@ -1,23 +1,36 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
, matplotlib
|
||||
, numpy
|
||||
, scipy
|
||||
, python-dateutil
|
||||
, pytz
|
||||
, requests
|
||||
, retrying
|
||||
, scipy
|
||||
, six
|
||||
, tornado
|
||||
, tweepy
|
||||
, ws4py
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyalgotrade";
|
||||
version = "0.20";
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
pname = "PyAlgoTrade";
|
||||
inherit version;
|
||||
sha256 = "7927c87af202869155280a93ff6ee934bb5b46cdb1f20b70f7407337f8541cbd";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ numpy scipy pytz ];
|
||||
propagatedBuildInputs = [
|
||||
matplotlib numpy python-dateutil pytz requests
|
||||
retrying scipy six tornado tweepy ws4py
|
||||
];
|
||||
|
||||
# no tests in PyPI tarball
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python Algorithmic Trading";
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, pytest, mock, git, asyncio
|
||||
{ stdenv, buildPythonPackage, fetchPypi, pytest, mock, git
|
||||
, cherrypy, gevent, tornado }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -11,15 +11,16 @@ buildPythonPackage rec {
|
||||
};
|
||||
|
||||
checkInputs = [ pytest mock git ];
|
||||
propagatedBuildInputs = [ asyncio cherrypy gevent tornado ];
|
||||
propagatedBuildInputs = [ cherrypy gevent tornado ];
|
||||
|
||||
checkPhase = ''
|
||||
pytest -k 'not test_timeout_when_no_registered_fds and not test_mainloop_can_be_stopped_when_no_websocket_were_registered'
|
||||
pytest
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://ws4py.readthedocs.org;
|
||||
description = "A WebSocket package for Python";
|
||||
maintainers = with maintainers; [ rickynils ];
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user