GNU bug report logs - #57099
[PATCH] Add python-hdbscan

Previous Next

Package: guix-patches;

Reported by: Kiran Shila <me <at> kiranshila.com>

Date: Wed, 10 Aug 2022 05:20:01 UTC

Severity: normal

Tags: patch

Done: Sharlatan Hellseher <sharlatanus <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 57099 in the body.
You can then email your comments to 57099 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#57099; Package guix-patches. (Wed, 10 Aug 2022 05:20:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Kiran Shila <me <at> kiranshila.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Wed, 10 Aug 2022 05:20:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Kiran Shila <me <at> kiranshila.com>
To: guix-patches <at> gnu.org
Cc: Kiran Shila <me <at> kiranshila.com>
Subject: [PATCH] Add python-hdbscan
Date: Tue,  9 Aug 2022 22:18:51 -0700
---
 gnu/packages/python-science.scm | 41 +++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 95f60aae7b..758079c8b6 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -20,6 +20,7 @@
 ;;; Copyright © 2022 Paul A. Patience <paul <at> apatience.com>
 ;;; Copyright © 2022 Wiktor Żelazny <wzelazny <at> vurv.cz>
 ;;; Copyright © 2022 Eric Bavier <bavier <at> posteo.net>
+;;; Copyright © 2022 Kiran Shila <me <at> kiranshila.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1478,3 +1479,43 @@ (define-public python-opt-einsum
 well as potentially any library which conforms to a standard API. See the
 documentation for more information.")
     (license license:expat)))
+
+(define-public python-hdbscan
+  (package
+    (name "python-hdbscan")
+    (version "0.8.28")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "hdbscan" version))
+              (sha256
+               (base32
+                "0nn0xm9ji74pkil1lbkrskmyak25jx4av8cdqg2dzgiv5wgzgnpf"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:modules ((ice-9 ftw)
+                  (srfi srfi-1)
+                  (guix build utils)
+                  (guix build python-build-system))
+       #:phases (modify-phases
+                    %standard-phases
+                  (replace 'check
+                    (lambda* (#:key tests? #:allow-other-keys)
+                      (when tests?
+                        (let ((outdir (string-append
+                                       (getcwd) "/build/"
+                                       (car (filter (lambda (s) (string-contains s "lib"))
+                                                    (scandir "build"))))))
+                          (invoke "pytest" "-vv" outdir))))))))
+    (propagated-inputs (list python-cython python-joblib python-numpy
+                             python-scikit-learn python-scipy))
+    (native-inputs (list python-nose python-pytest python-pandas python-networkx))
+    (home-page "http://github.com/scikit-learn-contrib/hdbscan")
+    (synopsis "Clustering based on density with variable density clusters")
+    (description "HDBSCAN - Hierarchical Density-Based Spatial Clustering of
+Applications with Noise. Performs DBSCAN over varying epsilon values and
+integrates the result to find a clustering that gives the best stability over
+epsilon. This allows HDBSCAN to find clusters of varying densities (unlike
+DBSCAN), and be more robust to parameter selection. HDBSCAN is ideal for
+exploratory data analysis; it's a fast and robust algorithm that you can trust
+to return meaningful clusters (if there are any).")
+    (license license:bsd-3)))
-- 
2.37.1





Reply sent to Sharlatan Hellseher <sharlatanus <at> gmail.com>:
You have taken responsibility. (Mon, 29 Jan 2024 23:04:02 GMT) Full text and rfc822 format available.

Notification sent to Kiran Shila <me <at> kiranshila.com>:
bug acknowledged by developer. (Mon, 29 Jan 2024 23:04:03 GMT) Full text and rfc822 format available.

Message #10 received at 57099-done <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 57099-done <at> debbugs.gnu.org
Subject: [PATCH] Add python-hdbscan
Date: Mon, 29 Jan 2024 23:02:59 +0000
[Message part 1 (text/plain, inline)]
  Modifications applied:
  - simplify package by using pyproject-build-system
  - add 'build-extensions to pass 'check phase
  - update to the lates upstream version 0.8.33
  - python-cython moved to native-inputs
  - fix all lint wrnings
  - use HTTPS for home-page

Pushed as cdadef64093fc12fd335a2b7b54d4b05c829107e to master.

Thanks,
Oleg
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 27 Feb 2024 12:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 31 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.