diff options
Diffstat (limited to 'pkgs/development/python-modules/yfinance/default.nix')
-rw-r--r-- | pkgs/development/python-modules/yfinance/default.nix | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/yfinance/default.nix b/pkgs/development/python-modules/yfinance/default.nix index bc270fbb8e65..9d5fe8500840 100644 --- a/pkgs/development/python-modules/yfinance/default.nix +++ b/pkgs/development/python-modules/yfinance/default.nix @@ -1,6 +1,5 @@ { lib, - appdirs, beautifulsoup4, buildPythonPackage, cryptography, @@ -12,14 +11,19 @@ numpy, pandas, peewee, + platformdirs, pythonOlder, + pytz, + requests-cache, + requests-ratelimiter, requests, + scipy, setuptools, }: buildPythonPackage rec { pname = "yfinance"; - version = "0.2.38"; + version = "0.2.49"; pyproject = true; disabled = pythonOlder "3.7"; @@ -28,13 +32,12 @@ buildPythonPackage rec { owner = "ranaroussi"; repo = "yfinance"; rev = "refs/tags/${version}"; - hash = "sha256-ZGwtu2vLcE9pM73umhnFwSzjQnGjTOTtVF607ox7I6E="; + hash = "sha256-rZU7xMTVabXMOQYGJnZjkDcfegBzHNsx8VNPvKKWEIQ="; }; build-system = [ setuptools ]; dependencies = [ - appdirs beautifulsoup4 cryptography frozendict @@ -44,9 +47,21 @@ buildPythonPackage rec { numpy pandas peewee + platformdirs + pytz requests ]; + optional-dependencies = { + nospam = [ + requests-cache + requests-ratelimiter + ]; + repair = [ + scipy + ]; + }; + # Tests require internet access doCheck = false; |