pythonPackages.pyalgotrade: refactor move to python-modules
This commit is contained in:
parent
098c097190
commit
3050ded4db
28
pkgs/development/python-modules/pyalgotrade/default.nix
Normal file
28
pkgs/development/python-modules/pyalgotrade/default.nix
Normal 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;
|
||||
};
|
||||
|
||||
}
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user