pythonPackages.pyalgotrade: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-25 21:58:46 -04:00 committed by Frederik Rietdijk
parent 098c097190
commit 3050ded4db
2 changed files with 29 additions and 18 deletions

View File

@ -0,0 +1,28 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, isPy3k
, numpy
, scipy
, pytz
}:
buildPythonPackage rec {
pname = "pyalgotrade";
version = "0.16";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "a253617254194b91cfebae7bfd184cb109d4e48a8c70051b9560000a2c0f94b3";
};
propagatedBuildInputs = [ numpy scipy pytz ];
meta = with stdenv.lib; {
description = "Python Algorithmic Trading";
homepage = http://gbeced.github.io/pyalgotrade/;
license = licenses.asl20;
};
}

View File

@ -3243,24 +3243,7 @@ in {
pyacoustid = callPackage ../development/python-modules/pyacoustid { };
pyalgotrade = buildPythonPackage {
name = "pyalgotrade-0.16";
disabled = isPy3k;
src = pkgs.fetchurl {
url = "mirror://pypi/P/PyAlgoTrade/PyAlgoTrade-0.16.tar.gz";
sha256 = "a253617254194b91cfebae7bfd184cb109d4e48a8c70051b9560000a2c0f94b3";
};
propagatedBuildInputs = with self; [ numpy scipy pytz ];
meta = {
description = "Python Algorithmic Trading";
homepage = http://gbeced.github.io/pyalgotrade/;
license = licenses.asl20;
};
};
pyalgotrade = callPackage ../development/python-modules/pyalgotrade { };
pyasn1 = callPackage ../development/python-modules/pyasn1 { };