~ruther/guix-local

c8218094c47482c16f4cdd1e8092c35dab117418 — Nguyễn Gia Phong 1 year, 4 months ago 0517440
gnu: Add python-apted.

* gnu/packages/python-science.scm (python-apted): New variable.

Change-Id: Ifd79f12b6be4d593106805f714a6545226e59479
Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 35 insertions(+), 0 deletions(-)

M gnu/packages/python-science.scm
M gnu/packages/python-science.scm => gnu/packages/python-science.scm +35 -0
@@ 30,6 30,7 @@
;;; Copyright © 2024 Rick Huijzer <ikbenrickhuyzer@gmail.com>
;;; Copyright © 2025 Nicolas Graves <ngraves@ngraves.fr>
;;; Copyright © 2025 Mark Walker <mark.damon.walker@gmail.com>
;;; Copyright © 2025 Nguyễn Gia Phong <mcsinyx@disroot.org>
;;;
;;; This file is part of GNU Guix.
;;;


@@ 245,6 246,40 @@ possibility to differentiate functions that contain matrix functions as
+,-,*,/, dot, solve, qr, eigh, cholesky.")
    (license license:bsd-3)))

(define-public python-apted
  ;; PyPI release lacks tests and there is no Git tag.
  (let ((commit "828b3e3f4c053f7d35f0b55b0d5597e8041719ac")
        (revision "0"))
    (package
      (name "python-apted")
      (version (git-version "1.0.3" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri (git-reference
               (url "https://github.com/JoaoFelipe/apted")
               (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "1vw1sbn41cysmhr4ib58cw3hzs1xjxwb1d8r1yhrqgjk5q6ckjw7"))))
      (build-system pyproject-build-system)
      (arguments
       (list
        #:test-flags
        #~(list "--deselect=apted/tests/test_chained.py::test_factory"
                "--deselect=apted/tests/test_correctness.py::test_factory"
                "--deselect=apted/tests/test_per_edit_operation_correctness.py::test_factory")))
      (native-inputs
       (list python-pytest
             python-setuptools
             python-wheel))
      (home-page "https://github.com/JoaoFelipe/apted")
      (synopsis "Algorithm for the tree edit distance")
      (description
       "This is a Python implementation of the APTED algorithm,which
supersedes the RTED algorithm for computing the tree edit distance.")
      (license license:expat))))

(define-public python-cmocean
  (package
    (name "python-cmocean")