Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #57724 from dotlambda/pyalgotrade-fix

python.pkgs.pyalgotrade: fix build

authored by Robert Schütz and committed by GitHub 3172140c 913e3389

+22 -8
+18 -5
pkgs/development/python-modules/pyalgotrade/default.nix
··· 1 1 { stdenv 2 2 , buildPythonPackage 3 3 , fetchPypi 4 - , isPy3k 4 + , matplotlib 5 5 , numpy 6 - , scipy 6 + , python-dateutil 7 7 , pytz 8 + , requests 9 + , retrying 10 + , scipy 11 + , six 12 + , tornado 13 + , tweepy 14 + , ws4py 8 15 }: 9 16 10 17 buildPythonPackage rec { 11 18 pname = "pyalgotrade"; 12 19 version = "0.20"; 13 - disabled = isPy3k; 14 20 15 21 src = fetchPypi { 16 - inherit pname version; 22 + pname = "PyAlgoTrade"; 23 + inherit version; 17 24 sha256 = "7927c87af202869155280a93ff6ee934bb5b46cdb1f20b70f7407337f8541cbd"; 18 25 }; 19 26 20 - propagatedBuildInputs = [ numpy scipy pytz ]; 27 + propagatedBuildInputs = [ 28 + matplotlib numpy python-dateutil pytz requests 29 + retrying scipy six tornado tweepy ws4py 30 + ]; 31 + 32 + # no tests in PyPI tarball 33 + doCheck = false; 21 34 22 35 meta = with stdenv.lib; { 23 36 description = "Python Algorithmic Trading";
+4 -3
pkgs/development/python-modules/ws4py/default.nix
··· 1 - { stdenv, buildPythonPackage, fetchPypi, pytest, mock, git, asyncio 1 + { stdenv, buildPythonPackage, fetchPypi, pytest, mock, git 2 2 , cherrypy, gevent, tornado }: 3 3 4 4 buildPythonPackage rec { ··· 11 11 }; 12 12 13 13 checkInputs = [ pytest mock git ]; 14 - propagatedBuildInputs = [ asyncio cherrypy gevent tornado ]; 14 + propagatedBuildInputs = [ cherrypy gevent tornado ]; 15 15 16 16 checkPhase = '' 17 - pytest -k 'not test_timeout_when_no_registered_fds and not test_mainloop_can_be_stopped_when_no_websocket_were_registered' 17 + pytest 18 18 ''; 19 19 20 20 meta = with stdenv.lib; { 21 21 homepage = https://ws4py.readthedocs.org; 22 22 description = "A WebSocket package for Python"; 23 23 maintainers = with maintainers; [ rickynils ]; 24 + license = licenses.bsd3; 24 25 }; 25 26 }