all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#61433] [PATCH 1/2] gnu: python-clingo: Install distribution information.
  2023-02-11 14:52 [bug#61433] [PATCH 0/2] Add python-clorm Liliana Marie Prikler
@ 2023-02-11 14:50 ` Liliana Marie Prikler
  2023-02-11 14:51 ` [bug#61433] [PATCH 2/2] gnu: Add python-clorm Liliana Marie Prikler
  1 sibling, 0 replies; 4+ messages in thread
From: Liliana Marie Prikler @ 2023-02-11 14:50 UTC (permalink / raw)
  To: 61433

* gnu/packages/maths.scm (python-clingo)[#:phases]: Add ‘install-distinfo’.
---
 gnu/packages/maths.scm | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 0da47943fd..61122f09af 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -2717,7 +2717,17 @@ (define-public python-clingo
                   (("ctl\\.solve\\(on_statistics=on_statistics\\)" all)
                    (string-append
                     all
-                    "; self.skipTest(\"You shall not fail.\")")))))))))
+                    "; self.skipTest(\"You shall not fail.\")")))))
+            (add-after 'install 'install-distinfo
+              (lambda* (#:key inputs outputs #:allow-other-keys)
+                (with-directory-excursion (python:site-packages inputs outputs)
+                   (let ((dir (string-append "clingo-" #$version ".dist-info")))
+                     (mkdir-p dir)
+                     (call-with-output-file (string-append dir "/METADATA")
+                       (lambda (port)
+                         (format port "Metadata-Version: 1.1~%")
+                         (format port "Name: clingo~%")
+                         (format port "Version: ~a~%" #$version)))))))))))
     (inputs (list clingo python-wrapper))
     (propagated-inputs (list python-cffi))
     (native-inputs (modify-inputs (package-native-inputs clingo)
-- 
2.39.1





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#61433] [PATCH 2/2] gnu: Add python-clorm.
  2023-02-11 14:52 [bug#61433] [PATCH 0/2] Add python-clorm Liliana Marie Prikler
  2023-02-11 14:50 ` [bug#61433] [PATCH 1/2] gnu: python-clingo: Install distribution information Liliana Marie Prikler
@ 2023-02-11 14:51 ` Liliana Marie Prikler
  2023-02-19  7:28   ` bug#61433: " Liliana Marie Prikler
  1 sibling, 1 reply; 4+ messages in thread
From: Liliana Marie Prikler @ 2023-02-11 14:51 UTC (permalink / raw)
  To: 61433

* gnu/packages/maths.scm (python-clorm): New variable.
---
 gnu/packages/maths.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 61122f09af..80b8b26b90 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -2737,6 +2737,41 @@ (define-public python-clingo
 making it so that you can write @acronym{ASPs, Answer Set Programs} through
 Python code.")))
 
+(define-public python-clorm
+  (package
+   (name "python-clorm")
+   (version "1.4.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
+              "0jx99y71mrgdicn1da5dwz5nzgvvpabrikff783sg4shbv2cf0b5"))))
+   (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")
+                  (substitute* "tests/test_clingo.py"
+                    (("self\\.assertTrue\\(os_called\\)" all)
+                     (string-append "# " all))))))))
+   (propagated-inputs (list python-clingo))
+   (native-inputs (list python-typing-extensions))
+   (home-page "https://potassco.org")
+   (synopsis "Object relational mapping to clingo")
+   (description "@acronym{Clorm, Clingo ORM} provides an @acronym{ORM,
+Object Relational Mapping} interface to the @acronym{ASP, answer set
+programming} solver clingo.  Its goal is to make integration of clingo
+into Python programs easier.")
+   (license license:expat)))
+
 (define-public python-telingo
   (package
     (name "python-telingo")
-- 
2.39.1





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#61433] [PATCH 0/2] Add python-clorm
@ 2023-02-11 14:52 Liliana Marie Prikler
  2023-02-11 14:50 ` [bug#61433] [PATCH 1/2] gnu: python-clingo: Install distribution information Liliana Marie Prikler
  2023-02-11 14:51 ` [bug#61433] [PATCH 2/2] gnu: Add python-clorm Liliana Marie Prikler
  0 siblings, 2 replies; 4+ messages in thread
From: Liliana Marie Prikler @ 2023-02-11 14:52 UTC (permalink / raw)
  To: 61433

Liliana Marie Prikler (2):
  gnu: python-clingo: Install distribution information.
  gnu: Add python-clorm.

 gnu/packages/maths.scm | 47 +++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 46 insertions(+), 1 deletion(-)


base-commit: b8f6ead5faac3c1b9a8fa6e060c00cf0917e884e
-- 
2.39.1





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#61433: [PATCH 2/2] gnu: Add python-clorm.
  2023-02-11 14:51 ` [bug#61433] [PATCH 2/2] gnu: Add python-clorm Liliana Marie Prikler
@ 2023-02-19  7:28   ` Liliana Marie Prikler
  0 siblings, 0 replies; 4+ messages in thread
From: Liliana Marie Prikler @ 2023-02-19  7:28 UTC (permalink / raw)
  To: 61433-done

Am Samstag, dem 11.02.2023 um 15:51 +0100 schrieb Liliana Marie
Prikler:
> * gnu/packages/maths.scm (python-clorm): New variable.
Pushed.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-02-19  7:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-11 14:52 [bug#61433] [PATCH 0/2] Add python-clorm Liliana Marie Prikler
2023-02-11 14:50 ` [bug#61433] [PATCH 1/2] gnu: python-clingo: Install distribution information Liliana Marie Prikler
2023-02-11 14:51 ` [bug#61433] [PATCH 2/2] gnu: Add python-clorm Liliana Marie Prikler
2023-02-19  7:28   ` bug#61433: " Liliana Marie Prikler

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.