about summary refs log tree commit diff
path: root/pkgs/development/python-modules/yfinance/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/yfinance/default.nix')
-rw-r--r--pkgs/development/python-modules/yfinance/default.nix23
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 bc270fbb8e65d..eb454cd9a4dc6 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.40";
   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-y3vcgPhksW8g0WpqVgJej7s+aIj9zaAjBjSm8d7yrjs=";
   };
 
   build-system = [ setuptools ];
 
   dependencies = [
-    appdirs
     beautifulsoup4
     cryptography
     frozendict
@@ -44,9 +47,21 @@ buildPythonPackage rec {
     numpy
     pandas
     peewee
+    platformdirs
+    pytz
     requests
   ];
 
+  passthru.optional-dependencies = {
+    nospam = [
+      requests-cache
+      requests-ratelimiter
+    ];
+    repair = [
+      scipy
+    ];
+  };
+
   # Tests require internet access
   doCheck = false;