summaryrefslogtreecommitdiff
path: root/gnu/packages/python-science.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/python-science.scm')
-rw-r--r--gnu/packages/python-science.scm35
1 files changed, 35 insertions, 0 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index f01a71f2d0..758812cc86 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -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")