From c8218094c47482c16f4cdd1e8092c35dab117418 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Wed, 11 Jun 2025 13:59:45 +0900 Subject: gnu: Add python-apted. * gnu/packages/python-science.scm (python-apted): New variable. Change-Id: Ifd79f12b6be4d593106805f714a6545226e59479 Modified-by: Sharlatan Hellseher Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-science.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'gnu/packages/python-science.scm') diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index f01a71f2d02..758812cc86c 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -30,6 +30,7 @@ ;;; Copyright © 2024 Rick Huijzer ;;; Copyright © 2025 Nicolas Graves ;;; Copyright © 2025 Mark Walker +;;; Copyright © 2025 Nguyễn Gia Phong ;;; ;;; 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") -- cgit v1.3