python3Packages.hdbscan: unbreak
This commit is contained in:
parent
7865db274b
commit
877c070415
@ -1,8 +1,9 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
|
, fetchpatch
|
||||||
, cython
|
, cython
|
||||||
, numpy
|
, numpy
|
||||||
, nose
|
, pytestCheckHook
|
||||||
, scipy
|
, scipy
|
||||||
, scikitlearn
|
, scikitlearn
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
@ -18,11 +19,22 @@ buildPythonPackage rec {
|
|||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "e3a418d0d36874f7b6a1bf0b7461f3857fc13a525fd48ba34caed2fe8973aa26";
|
sha256 = "e3a418d0d36874f7b6a1bf0b7461f3857fc13a525fd48ba34caed2fe8973aa26";
|
||||||
};
|
};
|
||||||
|
patches = [
|
||||||
checkInputs = [ nose ];
|
# This patch fixes compatibility with numpy 1.20. It will be in the next release
|
||||||
|
# after 0.8.27
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/scikit-learn-contrib/hdbscan/commit/5b67a4fba39c5aebe8187a6a418da677f89a63e0.patch";
|
||||||
|
sha256 = "07d7jdwk0b8kgaqkifd529sarji01j1jiih7cfccc5kxmlb5py9h";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ cython ];
|
nativeBuildInputs = [ cython ];
|
||||||
propagatedBuildInputs = [ numpy scipy scikitlearn joblib six ];
|
propagatedBuildInputs = [ numpy scipy scikitlearn joblib six ];
|
||||||
|
preCheck = ''
|
||||||
|
cd hdbscan/tests
|
||||||
|
rm __init__.py
|
||||||
|
'';
|
||||||
|
checkInputs = [ pytestCheckHook ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Hierarchical Density-Based Spatial Clustering of Applications with Noise, a clustering algorithm with a scikit-learn compatible API";
|
description = "Hierarchical Density-Based Spatial Clustering of Applications with Noise, a clustering algorithm with a scikit-learn compatible API";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user