unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Liliana Marie Prikler <liliana.prikler@gmail.com>
To: 68713@debbugs.gnu.org
Subject: [bug#68713] [PATCH 3/4] gnu: Add python-plingo.
Date: Thu, 25 Jan 2024 10:46:07 +0100	[thread overview]
Message-ID: <a2a5551cf6dff8068ab885f3b2e4f7f18091a006.1706178350.git.liliana.prikler@gmail.com> (raw)
Message-ID: <20240125094607.vBensihfmSWIp6-G5F_WB4BHQHMb5QIooH9I_jeJBWc@z> (raw)
In-Reply-To: <cover.1706178350.git.liliana.prikler@gmail.com>

* gnu/packages/potassco.scm (python-plingo): New variable.
---
 gnu/packages/potassco.scm | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/gnu/packages/potassco.scm b/gnu/packages/potassco.scm
index 0ec6253099..81d7cfa7e2 100644
--- a/gnu/packages/potassco.scm
+++ b/gnu/packages/potassco.scm
@@ -439,6 +439,44 @@ (define-public python-clorm
 into Python programs easier.")
     (license license:expat)))
 
+(define-public python-plingo
+  (package
+    (name "python-plingo")
+    (version "1.0.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/potassco/plingo")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1mp0pdjzwpl7bpba20iwszx9x49gsyl2rhrp7w7xpwjqdjrp23r8"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'install 'install-script
+                 (lambda* (#:key outputs #:allow-other-keys)
+                   (let ((script (string-append (assoc-ref outputs "out")
+                                                "/bin/plingo")))
+                     (mkdir-p (dirname script))
+                     (call-with-output-file script
+                       (lambda (port)
+                         (display "#!/usr/bin/env python\n" port)
+                         (display "from plingo import main\n" port)
+                         (display "main()\n" port)))
+                     (chmod script #o755)
+                     ;; XXX: Does this cross-compile?
+                     (patch-shebang script)))))))
+    (propagated-inputs (list python-clingo))
+    (home-page "https://potassco.org/")
+    (synopsis "Solve probabilistic logic programs")
+    (description "This package provides a system to solve probabilistic
+logic programs with clingo.  It can solve the reasoning tasks of finding
+the most probable model as well as finding all models and their probabilities.")
+    (license license:expat)))
+
 (define-public python-telingo
   (package
     (name "python-telingo")
-- 
2.41.0





  parent reply	other threads:[~2024-01-26  5:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-25 10:25 [bug#68713] [PATCH 0/4] More clingo stuff Liliana Marie Prikler
2024-01-25  9:42 ` [bug#68714] [PATCH 1/4] gnu: Add python-clingo-dl Liliana Marie Prikler
2024-01-25  9:42   ` [bug#68713] " Liliana Marie Prikler
2024-02-05 21:38   ` [bug#68712] " Ludovic Courtès
2024-07-01  3:00     ` [bug#68712] [PATCH 0/2] Add piglit jgart via Guix-patches via
2024-01-25  9:44 ` [bug#68712] [PATCH 2/4] gnu: python-clorm: Reindent with emacs Liliana Marie Prikler
2024-01-25  9:44   ` [bug#68713] " Liliana Marie Prikler
2024-01-25  9:46 ` Liliana Marie Prikler [this message]
2024-01-25  9:46   ` [bug#68712] [PATCH 3/4] gnu: Add python-plingo Liliana Marie Prikler
2024-01-25  9:46   ` [bug#68713] " Liliana Marie Prikler
  -- strict thread matches above, loose matches on Subject: below --
2024-01-25  9:20 [bug#68712] [PATCH 0/2] Add piglit Liliana Marie Prikler
2024-01-25  8:56 ` [bug#68712] [PATCH 1/2] gnu: Add waffle Liliana Marie Prikler
2024-01-25  9:19 ` [bug#68712] [PATCH 2/2] gnu: Add piglit Liliana Marie Prikler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a2a5551cf6dff8068ab885f3b2e4f7f18091a006.1706178350.git.liliana.prikler@gmail.com \
    --to=liliana.prikler@gmail.com \
    --cc=68713@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).