2020-09-25 04:45:31 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, multitasking
|
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "yfinance";
|
2021-04-26 19:14:03 +00:00
|
|
|
version = "0.1.56";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
# GitHub source releases aren't tagged
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-04-26 19:14:03 +00:00
|
|
|
sha256 = "a6d4c7b939fdd48d983556501f5b387e20aaef86afc8e6ba6f91a49a7e22d2dd";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
multitasking
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false; # Tests require internet access
|
|
|
|
pythonImportsCheck = [ "yfinance" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Yahoo! Finance market data downloader (+faster Pandas Datareader)";
|
|
|
|
homepage = "https://aroussi.com/post/python-yahoo-finance";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ drewrisinger ];
|
|
|
|
};
|
|
|
|
}
|