From 9d3554c59dc012ad4e6b6a7d34b72f7fd62883af Mon Sep 17 00:00:00 2001 From: George Macon Date: Fri, 30 Sep 2022 09:57:28 -0400 Subject: [PATCH] python3Packages.hdbscan: Patch out runtime Cython dependency Upstream declares a dependency on Cython at runtime, but that's not a true requirements. Remove it so that derivations depending on this one can build without pip complaining that Cython cannot be found. --- pkgs/development/python-modules/hdbscan/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/hdbscan/default.nix b/pkgs/development/python-modules/hdbscan/default.nix index 9fa932c7e418..29dd585d8bec 100644 --- a/pkgs/development/python-modules/hdbscan/default.nix +++ b/pkgs/development/python-modules/hdbscan/default.nix @@ -9,6 +9,7 @@ , fetchPypi , joblib , six +, pythonRelaxDepsHook }: buildPythonPackage rec { @@ -28,7 +29,8 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ cython ]; + pythonRemoveDeps = [ "cython" ]; + nativeBuildInputs = [ pythonRelaxDepsHook cython ]; propagatedBuildInputs = [ numpy scipy scikit-learn joblib six ]; preCheck = '' cd hdbscan/tests