diff --git a/pkgs/development/python-modules/hdbscan/default.nix b/pkgs/development/python-modules/hdbscan/default.nix new file mode 100644 index 000000000000..3d57ff371666 --- /dev/null +++ b/pkgs/development/python-modules/hdbscan/default.nix @@ -0,0 +1,30 @@ +{ lib +, buildPythonPackage +, cython +, numpy +, nose +, scipy +, scikitlearn +, fetchPypi +}: + +buildPythonPackage rec { + pname = "hdbscan"; + version = "0.8.12"; + + src = fetchPypi { + inherit pname version; + sha256 = "0yxi34frg2jwyvjl942qy4gq5pbx8dq4pf4p28d1xah8njchfqir"; + }; + + 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"; + homepage = http://github.com/scikit-learn-contrib/hdbscan; + license = licenses.bsd3; + maintainers = with maintainers; [ ixxie ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 93444be7302a..6635721ee958 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6342,6 +6342,8 @@ in { propagatedBuildInputs = with self; [ requests webob ]; }; + hdbscan = callPackage ../development/python-modules/hdbscan { }; + hmmlearn = callPackage ../development/python-modules/hmmlearn { }; hcs_utils = callPackage ../development/python-modules/hcs_utils { };