summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-09-21 11:36:39 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-25 09:36:43 +0100
commit895a264deb41bf769ee39d9462513b7cd588617e (patch)
treee710792be0fb05054212387d99897fb66523ee33
parent660440e4a90eaaf123977f820a1fdbb2ba78c76d (diff)
gnu: python-clorm: Fix tests.
* gnu/packages/potassco.scm (python-clorm) [source]: Improve style. [arguments]: Improve style. <#:test-backend>: Set it. [native-inputs]: Remove python-wheel, python-typing-extensions. Change-Id: I0d1856b155db7ce378d8fca10a7a279d58950839 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
-rw-r--r--gnu/packages/potassco.scm36
1 files changed, 19 insertions, 17 deletions
diff --git a/gnu/packages/potassco.scm b/gnu/packages/potassco.scm
index 9c631af73b6..84b69a06560 100644
--- a/gnu/packages/potassco.scm
+++ b/gnu/packages/potassco.scm
@@ -626,26 +626,28 @@ are already predefined, but more can be added as logic programs.")
(package
(name "python-clorm")
(version "1.6.1")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/potassco/clorm")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "03a7kcyilpvvd6i6njh67vy3zhb3yzi55fhgnffg15j3zflww6fy"))))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/potassco/clorm")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "03a7kcyilpvvd6i6njh67vy3zhb3yzi55fhgnffg15j3zflww6fy"))))
(build-system pyproject-build-system)
(arguments
- (list #:phases
- #~(modify-phases %standard-phases
- (add-before 'check 'fix-breaking-tests
- (lambda _
- ;; noclingo tests rely on this being set
- (setenv "CLORM_NOCLINGO" "1")
- (delete-file "tests/test_mypy_query.py"))))))
+ (list
+ #:test-backend #~'unittest
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'fix-breaking-tests
+ (lambda _
+ ;; noclingo tests rely on this being set
+ (setenv "CLORM_NOCLINGO" "1")
+ (delete-file "tests/test_mypy_query.py"))))))
(propagated-inputs (list python-clingo))
- (native-inputs (list python-typing-extensions python-setuptools python-wheel))
+ (native-inputs (list python-setuptools))
(home-page "https://potassco.org")
(synopsis "Object relational mapping to clingo")
(description "@acronym{Clorm, Clingo ORM} provides an @acronym{ORM,