diff options
author | Robert Scott <code@humanleg.org.uk> | 2019-06-16 19:10:20 +0100 |
---|---|---|
committer | Robert Scott <code@humanleg.org.uk> | 2019-06-16 21:53:14 +0100 |
commit | 2be7ccf2a34c68fa515f457fc5c1948ed35c368c (patch) | |
tree | abce67e519ab80f280a6cffebc88649ad488feac /pkgs/development/python-modules/hdbscan | |
parent | 636f1f08b0a1d26b6530a45a0b33ed1c3a081c02 (diff) |
pythonPackages.hdbscan: fix build by applying upstream patch
simple missing import in one of the test modules
Diffstat (limited to 'pkgs/development/python-modules/hdbscan')
-rw-r--r-- | pkgs/development/python-modules/hdbscan/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/hdbscan/default.nix b/pkgs/development/python-modules/hdbscan/default.nix index d20c43754fced..04cffbef78b0f 100644 --- a/pkgs/development/python-modules/hdbscan/default.nix +++ b/pkgs/development/python-modules/hdbscan/default.nix @@ -6,6 +6,7 @@ , scipy , scikitlearn , fetchPypi +, fetchpatch }: buildPythonPackage rec { @@ -17,6 +18,15 @@ buildPythonPackage rec { sha256 = "263e9f34db63eec217d50f2ca3e65049c065775dc4095b5ee817824cd2b5b51b"; }; + patches = [ + # Fix Tests. Drop in release >0.8.20 + (fetchpatch { + name = "test-rsl-missing-import.patch"; + url = https://github.com/scikit-learn-contrib/hdbscan/commit/e40ccef139e56e38adf7bd6912cd63efd97598f9.patch; + sha256 = "0cfq4ja7j61h2zwd1jw5gagcz2sg18kjnx29sb0bwa13wfw6fip0"; + }) + ]; + checkInputs = [ nose ]; propagatedBuildInputs = [ cython numpy scipy scikitlearn ]; |