about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/statsmodels/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/statsmodels/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/statsmodels/default.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/statsmodels/default.nix b/nixpkgs/pkgs/development/python-modules/statsmodels/default.nix
index 4d05e36ad8bc..7df922863174 100644
--- a/nixpkgs/pkgs/development/python-modules/statsmodels/default.nix
+++ b/nixpkgs/pkgs/development/python-modules/statsmodels/default.nix
@@ -1,14 +1,17 @@
 { lib
 , buildPythonPackage
 , cython
+, fetchpatch
 , fetchPypi
 , matplotlib
 , numpy
+, oldest-supported-numpy
 , pandas
 , patsy
 , pythonOlder
 , scipy
 , setuptools-scm
+, wheel
 }:
 
 buildPythonPackage rec {
@@ -23,9 +26,20 @@ buildPythonPackage rec {
     hash = "sha256-aHXH1onpZtlI8V64FqtWFvSShwaxgM9HD9WQerb2R6Q=";
   };
 
+  patches = [
+    # https://github.com/statsmodels/statsmodels/pull/8969
+    (fetchpatch {
+      name = "unpin-setuptools-scm.patch";
+      url = "https://github.com/statsmodels/statsmodels/commit/cfad8d81166e9b1392ba99763b95983afdb6d61b.patch";
+      hash = "sha256-l7cQHodkPm399a+3qIVmXPk/Ca+CqJDyWXWgjb062nM=";
+    })
+  ];
+
   nativeBuildInputs = [
     cython
+    oldest-supported-numpy
     setuptools-scm
+    wheel
   ];
 
   propagatedBuildInputs = [