From: Liliana Marie Prikler <liliana.prikler@gmail.com> To: 68714@debbugs.gnu.org Subject: [bug#68714] [PATCH 1/4] gnu: Add python-clingo-dl. Date: Thu, 25 Jan 2024 10:42:06 +0100 [thread overview] Message-ID: <fcf040238aa0d237ecac89d886e258b9e9f85a2d.1706178350.git.liliana.prikler@gmail.com> (raw) In-Reply-To: <cover.1706178350.git.liliana.prikler@gmail.com> * gnu/packages/potassco.scm (python-clingo-dl): New variable. --- gnu/packages/potassco.scm | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/gnu/packages/potassco.scm b/gnu/packages/potassco.scm index f2ee27db99..afc4c4d513 100644 --- a/gnu/packages/potassco.scm +++ b/gnu/packages/potassco.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2022, 2023 Liliana Marie Prikler <liliana.prikler@gmail.com> +;;; Copyright © 2022–2024 Liliana Marie Prikler <liliana.prikler@gmail.com> ;;; Copyright © 2023 Simon Tournier <zimon.toutoune@gmail.com> ;;; Copyright © 2023 David Elsing <david.elsing@posteo.net> ;;; Copyright © 2024 Ricardo Wurmus <rekado@elephly.net> @@ -370,6 +370,40 @@ (define-public python-clingo making it so that you can write @acronym{ASPs, Answer Set Programs} through Python code."))) +(define-public python-clingo-dl + (package + (inherit clingo-dl) + (name "python-clingo-dl") + (version (package-version clingo-dl)) + (arguments + (list + #:configure-flags #~'("-DPYCLINGODL_ENABLE=pip") + #:tests? #f + #:imported-modules `(,@%cmake-build-system-modules + (guix build python-build-system)) + #:modules '((guix build cmake-build-system) + ((guix build python-build-system) #:prefix python:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (add-after 'install 'install-distinfo + (lambda* (#:key inputs outputs #:allow-other-keys) + (with-directory-excursion (python:site-packages inputs outputs) + (let ((dir (string-append "clingodl-" #$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: clingodl~%") + (format port "Version: ~a~%" #$version)))))))))) + (inputs (modify-inputs (package-inputs clingo-dl) + (prepend python-wrapper))) + (propagated-inputs (list python-clingo python-cffi)) + (synopsis "Python bindings for clingo-dl") + (description "This package allows users to add the clingo-dl propagator +as a theory to clingo from Python code. It also supports running clingo-dl +directly from the python command line."))) + (define-public python-clorm (package (name "python-clorm") -- 2.41.0
WARNING: multiple messages have this Message-ID (diff)
From: Liliana Marie Prikler <liliana.prikler@gmail.com> To: 68713@debbugs.gnu.org Subject: [bug#68713] [PATCH 1/4] gnu: Add python-clingo-dl. Date: Thu, 25 Jan 2024 10:42:06 +0100 [thread overview] Message-ID: <fcf040238aa0d237ecac89d886e258b9e9f85a2d.1706178350.git.liliana.prikler@gmail.com> (raw) Message-ID: <20240125094206._mcBlbnplWduXUvOknFimz7fvF6uHcnVh2N3QTFCfUw@z> (raw) In-Reply-To: <cover.1706178350.git.liliana.prikler@gmail.com> * gnu/packages/potassco.scm (python-clingo-dl): New variable. --- gnu/packages/potassco.scm | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/gnu/packages/potassco.scm b/gnu/packages/potassco.scm index f2ee27db99..afc4c4d513 100644 --- a/gnu/packages/potassco.scm +++ b/gnu/packages/potassco.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2022, 2023 Liliana Marie Prikler <liliana.prikler@gmail.com> +;;; Copyright © 2022–2024 Liliana Marie Prikler <liliana.prikler@gmail.com> ;;; Copyright © 2023 Simon Tournier <zimon.toutoune@gmail.com> ;;; Copyright © 2023 David Elsing <david.elsing@posteo.net> ;;; Copyright © 2024 Ricardo Wurmus <rekado@elephly.net> @@ -370,6 +370,40 @@ (define-public python-clingo making it so that you can write @acronym{ASPs, Answer Set Programs} through Python code."))) +(define-public python-clingo-dl + (package + (inherit clingo-dl) + (name "python-clingo-dl") + (version (package-version clingo-dl)) + (arguments + (list + #:configure-flags #~'("-DPYCLINGODL_ENABLE=pip") + #:tests? #f + #:imported-modules `(,@%cmake-build-system-modules + (guix build python-build-system)) + #:modules '((guix build cmake-build-system) + ((guix build python-build-system) #:prefix python:) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (add-after 'install 'install-distinfo + (lambda* (#:key inputs outputs #:allow-other-keys) + (with-directory-excursion (python:site-packages inputs outputs) + (let ((dir (string-append "clingodl-" #$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: clingodl~%") + (format port "Version: ~a~%" #$version)))))))))) + (inputs (modify-inputs (package-inputs clingo-dl) + (prepend python-wrapper))) + (propagated-inputs (list python-clingo python-cffi)) + (synopsis "Python bindings for clingo-dl") + (description "This package allows users to add the clingo-dl propagator +as a theory to clingo from Python code. It also supports running clingo-dl +directly from the python command line."))) + (define-public python-clorm (package (name "python-clorm") -- 2.41.0
next prev parent reply other threads:[~2024-01-25 16:15 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 ` Liliana Marie Prikler [this message] 2024-01-25 9:42 ` [bug#68713] [PATCH 1/4] gnu: Add python-clingo-dl 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 ` [bug#68714] [PATCH 3/4] gnu: Add python-plingo Liliana Marie Prikler 2024-01-25 9:46 ` [bug#68713] " Liliana Marie Prikler 2024-01-25 9:46 ` [bug#68712] " 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=fcf040238aa0d237ecac89d886e258b9e9f85a2d.1706178350.git.liliana.prikler@gmail.com \ --to=liliana.prikler@gmail.com \ --cc=68714@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: linkBe 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).