2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
beautifulsoup4,
|
|
|
|
buildPythonPackage,
|
|
|
|
cryptography,
|
|
|
|
fetchFromGitHub,
|
|
|
|
frozendict,
|
|
|
|
html5lib,
|
|
|
|
lxml,
|
|
|
|
multitasking,
|
|
|
|
numpy,
|
|
|
|
pandas,
|
|
|
|
peewee,
|
2024-06-20 14:57:18 +00:00
|
|
|
platformdirs,
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonOlder,
|
2024-06-20 14:57:18 +00:00
|
|
|
pytz,
|
|
|
|
requests-cache,
|
|
|
|
requests-ratelimiter,
|
2024-04-21 15:54:59 +00:00
|
|
|
requests,
|
2024-06-20 14:57:18 +00:00
|
|
|
scipy,
|
2024-04-21 15:54:59 +00:00
|
|
|
setuptools,
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "yfinance";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.2.40";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ranaroussi";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "yfinance";
|
2022-06-26 10:26:21 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-y3vcgPhksW8g0WpqVgJej7s+aIj9zaAjBjSm8d7yrjs=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
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
|
2024-06-20 14:57:18 +00:00
|
|
|
platformdirs
|
|
|
|
pytz
|
2020-09-25 04:45:31 +00:00
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
nospam = [
|
|
|
|
requests-cache
|
|
|
|
requests-ratelimiter
|
|
|
|
];
|
|
|
|
repair = [
|
|
|
|
scipy
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
# Tests require internet access
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|