2020-09-25 04:45:31 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-12-06 16:07:01 +00:00
|
|
|
, fetchFromGitHub
|
2020-09-25 04:45:31 +00:00
|
|
|
, multitasking
|
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, requests
|
2021-12-06 16:07:01 +00:00
|
|
|
, lxml
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "yfinance";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "0.1.67";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ranaroussi";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-QwWShXelEBgLUvCwPqB7z5DjS1JsW/krPrsS3VkyaJg=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
multitasking
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
requests
|
2021-12-06 16:07:01 +00:00
|
|
|
lxml
|
2020-09-25 04:45:31 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|