gnu: python-clingo: Build from sources.

* gnu/packages/potassco.scm (clingo)[source]: Also delete
“libpyclingo/_clingo.c”.
(python-clingo)[#:phases]: Add ‘generate-sources’.  Remove ‘fix-failing-tests’.

Signed-off-by: jgart <jgart@dismail.de>
This commit is contained in:
Liliana Marie Prikler 2025-01-31 10:15:48 +01:00 committed by jgart
parent 78fee1bc75
commit 2fda889ac9
No known key found for this signature in database
GPG key ID: A52AA2B477B6DD35

View file

@ -162,7 +162,8 @@ satisfiability checking (SAT).")
#~(begin
(delete-file-recursively "clasp")
(delete-file-recursively "libgringo/gen")
(delete-file-recursively "third_party")))
(delete-file-recursively "third_party")
(delete-file "libpyclingo/_clingo.c")))
(sha256
(base32
"1mxl3gwx55sf2ifcb92mfy989c50yqpnq0d0r2mxdqr0riy40hjb"))))
@ -442,13 +443,10 @@ Lua code.")))
(guix build utils)))
((#:phases phases #~%standard-phases)
#~(modify-phases #$phases
(add-after 'unpack 'fix-failing-tests
(add-after 'unpack 'generate-sources
(lambda _
(substitute* "libpyclingo/clingo/tests/test_conf.py"
(("ctl\\.solve\\(on_statistics=on_statistics\\)" all)
(string-append
all
"; self.skipTest(\"You shall not fail.\")")))))
(with-directory-excursion "libpyclingo"
(invoke "python" "compile.py" "c"))))
(add-after 'install 'install-distinfo
(lambda* (#:key inputs outputs #:allow-other-keys)
(with-directory-excursion (python:site-packages inputs outputs)