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
|
2023-05-24 13:37:59 +00:00
|
|
|
, html5lib
|
2020-09-25 04:45:31 +00:00
|
|
|
, multitasking
|
|
|
|
, numpy
|
|
|
|
, pandas
|
2023-10-19 13:55:26 +00:00
|
|
|
, peewee
|
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";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.2.35";
|
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}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-uLcnTH3teLxW6LZCJUD3jOPLm1a2jAK1bg4tKSSNXKU=";
|
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
|
2023-05-24 13:37:59 +00:00
|
|
|
html5lib
|
2023-10-19 13:55:26 +00:00
|
|
|
lxml
|
2020-09-25 04:45:31 +00:00
|
|
|
multitasking
|
|
|
|
numpy
|
|
|
|
pandas
|
2023-10-19 13:55:26 +00:00
|
|
|
peewee
|
2020-09-25 04:45:31 +00:00
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|