2018-04-29 19:22:12 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, cython
|
|
|
|
, numpy
|
|
|
|
, nose
|
|
|
|
, scipy
|
|
|
|
, scikitlearn
|
|
|
|
, fetchPypi
|
2019-06-16 19:10:20 +01:00
|
|
|
, fetchpatch
|
2018-04-29 19:22:12 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hdbscan";
|
2019-05-30 07:49:50 +01:00
|
|
|
version = "0.8.22";
|
2018-04-29 19:22:12 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-05-30 07:49:50 +01:00
|
|
|
sha256 = "5cfdc25375123eb9a72363449979141cc928c1953f220f0f81d7baabcaccec2d";
|
2018-04-29 19:22:12 +01:00
|
|
|
};
|
|
|
|
|
2019-06-16 19:10:20 +01:00
|
|
|
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";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-04-29 19:22:12 +01:00
|
|
|
checkInputs = [ nose ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ cython numpy scipy scikitlearn ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Hierarchical Density-Based Spatial Clustering of Applications with Noise, a clustering algorithm with a scikit-learn compatible API";
|
2018-06-27 21:12:57 +01:00
|
|
|
homepage = https://github.com/scikit-learn-contrib/hdbscan;
|
2018-04-29 19:22:12 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ ixxie ];
|
|
|
|
};
|
|
|
|
}
|