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