2020-09-25 04:45:31 +00:00
|
|
|
{ lib
|
2022-10-21 18:38:19 +00:00
|
|
|
, appdirs
|
2023-02-02 18:25:31 +00:00
|
|
|
, beautifulsoup4
|
2020-09-25 04:45:31 +00:00
|
|
|
, buildPythonPackage
|
2022-12-28 21:21:41 +00:00
|
|
|
, cryptography
|
2021-12-06 16:07:01 +00:00
|
|
|
, fetchFromGitHub
|
2023-02-02 18:25:31 +00:00
|
|
|
, frozendict
|
2020-09-25 04:45:31 +00:00
|
|
|
, multitasking
|
|
|
|
, numpy
|
|
|
|
, pandas
|
2022-10-21 18:38:19 +00:00
|
|
|
, pythonOlder
|
2020-09-25 04:45:31 +00:00
|
|
|
, requests
|
2021-12-06 16:07:01 +00:00
|
|
|
, lxml
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "yfinance";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "0.2.9";
|
2022-10-21 18:38:19 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ranaroussi";
|
|
|
|
repo = pname;
|
2022-06-26 10:26:21 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-CcvBVW9MdXVx1BnIcPB9b1PHGK2zw4Hg0vVNW6s87/Q=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-10-21 18:38:19 +00:00
|
|
|
appdirs
|
2023-02-02 18:25:31 +00:00
|
|
|
beautifulsoup4
|
2022-12-28 21:21:41 +00:00
|
|
|
cryptography
|
2023-02-02 18:25:31 +00:00
|
|
|
frozendict
|
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
|
|
|
];
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
# Tests require internet access
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"yfinance"
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-12-28 21:21:41 +00:00
|
|
|
description = "Module to doiwnload Yahoo! Finance market data";
|
|
|
|
homepage = "https://github.com/ranaroussi/yfinance";
|
|
|
|
changelog = "https://github.com/ranaroussi/yfinance/blob/${version}/CHANGELOG.rst";
|
2020-09-25 04:45:31 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ drewrisinger ];
|
|
|
|
};
|
|
|
|
}
|