From 54de00678a07c07aa88426bab529977d3cba63e3 Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Sat, 12 Aug 2023 12:02:30 -0700 Subject: [PATCH] python3.pkgs.statsmodels: add build dependencies and fix constraints --- .../python-modules/statsmodels/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkgs/development/python-modules/statsmodels/default.nix b/pkgs/development/python-modules/statsmodels/default.nix index 4d05e36ad8bc..7df922863174 100644 --- a/pkgs/development/python-modules/statsmodels/default.nix +++ b/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 = [