From patchwork Thu Jan 25 09:42:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Liliana Marie Prikler X-Patchwork-Id: 59387 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id BFF8A27BBEA; Thu, 25 Jan 2024 16:15:37 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, PP_MIME_FAKE_ASCII_TEXT,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 7ECA227BBE2 for ; Thu, 25 Jan 2024 16:15:33 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rT2Nc-0005IW-Nf; Thu, 25 Jan 2024 11:15:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rT2NX-0005GN-GY for guix-patches@gnu.org; Thu, 25 Jan 2024 11:14:59 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rT2NX-0002Ug-8v for guix-patches@gnu.org; Thu, 25 Jan 2024 11:14:59 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rT2Nd-0007TU-5m for guix-patches@gnu.org; Thu, 25 Jan 2024 11:15:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68714] [PATCH 1/4] gnu: Add python-clingo-dl. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 25 Jan 2024 16:15:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68714 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68714@debbugs.gnu.org Received: via spool by 68714-submit@debbugs.gnu.org id=B68714.170619929628643 (code B ref 68714); Thu, 25 Jan 2024 16:15:05 +0000 Received: (at 68714) by debbugs.gnu.org; 25 Jan 2024 16:14:56 +0000 Received: from localhost ([127.0.0.1]:48970 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rT2NU-0007Rv-7f for submit@debbugs.gnu.org; Thu, 25 Jan 2024 11:14:56 -0500 Received: from mail-ej1-x641.google.com ([2a00:1450:4864:20::641]:48487) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rT2NR-0007RW-IG for 68714@debbugs.gnu.org; Thu, 25 Jan 2024 11:14:54 -0500 Received: by mail-ej1-x641.google.com with SMTP id a640c23a62f3a-a33604b00c6so45147066b.1 for <68714@debbugs.gnu.org>; Thu, 25 Jan 2024 08:14:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706199282; x=1706804082; darn=debbugs.gnu.org; h=mime-version:to:subject:date:from:references:in-reply-to:message-id :from:to:cc:subject:date:message-id:reply-to; bh=b4Lp71Uo4hld3FMSbdz67PN2vONEVdDfpOSHW4KpYPQ=; b=aNdSFl2RblvmOpX4cFmylop09majr6s+wEhzjc35r3KHotSMInKCj4MyXSX+Juv8Za T8uVKHfJ1LszWxObWc1yF51f/diUAxNcHEBQ/znhyfgN6iKauxCltLdnPcIuWIxg4rR9 oKLv8oBZYWTtpg7r5kcpNBDq4QqrlcPK5NzEv7jWv7BPRzsKix782uww3mRZ/TqBBZ4r xcJO8bXpJ9jZubwanzxkkk+MuQx8JtTAaD3upJAzHInx3H7cka/iCGpLFX3Rv13y2DBy kb+iObp6DGzVguZpX1EDBG8nBjBGrhrBSEQxXnPuw46UvoweLvRj8d3lU88zrt7jKm8Y d90w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706199282; x=1706804082; h=mime-version:to:subject:date:from:references:in-reply-to:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=b4Lp71Uo4hld3FMSbdz67PN2vONEVdDfpOSHW4KpYPQ=; b=bK7MOAPwbPogM6yGaqau5fjbnaMJSNpQaFKao7roG8aKEfkS/MOAlIRU2JGEBTniQt dXnOCUPQDgOE8huwKIPOJdbnEBxJoy3+vEdnf/wCaz6gB8LXSu41vKOUvH9Xm+eenLvN rTpDwufL/vuVTsBPr1P3l08SZbjbl1ljsB3Ifmc9VaBU05+L/TLpBTiGntlqQy+telo3 dHdel4MvjbQxjN8M6+AsVLdCEF0UFr/eGydw2J0W6wc745SdGNSxbk7l+rGSGSlNqQq3 rjqVRetZ43mx6Yc4eiGTj/jyn0lFNCYY89iPYtrE9Re2CxRaJqWEA9TMO+RyatihT7fx MlQQ== X-Gm-Message-State: AOJu0Yw4JFGTdcJaKzCvxBA5cwtviQvYyvcA9tzY1zJ8fDfg8MbaxXH/ YbaoBz+mMF587gXCTAJ6hv4GXkOAx55ZdvKsJFDS3LIy79+V3lYveqmmE1Jn8Ek= X-Google-Smtp-Source: AGHT+IGro2bmQrRobgZBz13zH7NenWdDLOwEXh9Jy7n8nzz4T1A2O7nALv23bWfwZ8bLe/0uI+0j6Q== X-Received: by 2002:a17:906:329b:b0:a30:3b60:dab5 with SMTP id 27-20020a170906329b00b00a303b60dab5mr600433ejw.46.1706199281950; Thu, 25 Jan 2024 08:14:41 -0800 (PST) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id vx10-20020a170907a78a00b00a3162e76a6csm1026885ejc.215.2024.01.25.08.14.41 for <68714@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 08:14:41 -0800 (PST) Message-ID: In-Reply-To: References: From: Liliana Marie Prikler Date: Thu, 25 Jan 2024 10:42:06 +0100 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * 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 +;;; Copyright © 2022–2024 Liliana Marie Prikler ;;; Copyright © 2023 Simon Tournier ;;; Copyright © 2023 David Elsing ;;; Copyright © 2024 Ricardo Wurmus @@ -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") From patchwork Thu Jan 25 09:44:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liliana Marie Prikler X-Patchwork-Id: 59388 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 8FD4C27BBF1; Thu, 25 Jan 2024 16:15:47 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED, URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 9E44027BBE2 for ; Thu, 25 Jan 2024 16:15:43 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rT2Nb-0005HN-5n; Thu, 25 Jan 2024 11:15:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rT2NW-0005G3-Fk for guix-patches@gnu.org; Thu, 25 Jan 2024 11:14:58 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rT2NW-0002UN-6H for guix-patches@gnu.org; Thu, 25 Jan 2024 11:14:58 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rT2Nb-0007TD-UV for guix-patches@gnu.org; Thu, 25 Jan 2024 11:15:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68712] [PATCH 2/4] gnu: python-clorm: Reindent with emacs. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 25 Jan 2024 16:15:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68712 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68712@debbugs.gnu.org Received: via spool by 68712-submit@debbugs.gnu.org id=B68712.170619927728592 (code B ref 68712); Thu, 25 Jan 2024 16:15:03 +0000 Received: (at 68712) by debbugs.gnu.org; 25 Jan 2024 16:14:37 +0000 Received: from localhost ([127.0.0.1]:48963 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rT2NB-0007R5-9z for submit@debbugs.gnu.org; Thu, 25 Jan 2024 11:14:37 -0500 Received: from mail-ej1-x641.google.com ([2a00:1450:4864:20::641]:60805) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rT2N5-0007QW-IN for 68712@debbugs.gnu.org; Thu, 25 Jan 2024 11:14:32 -0500 Received: by mail-ej1-x641.google.com with SMTP id a640c23a62f3a-a298accc440so761149366b.1 for <68712@debbugs.gnu.org>; Thu, 25 Jan 2024 08:14:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706199260; x=1706804060; darn=debbugs.gnu.org; h=mime-version:to:subject:date:from:references:in-reply-to:message-id :from:to:cc:subject:date:message-id:reply-to; bh=WHQPluHBd2Q3Xq2tluG6lkwl0/wxzENIkCvoGAemI1o=; b=UY0bvZVTOOh9A4RxMZV4YzrVJhPO3petFa3ENOrCC4wBIkOuWTKTmXUXW/UyZeZAj9 FeB7dpb31xQgytP112irp4A85f4fjDGtb2AVcQMSHI7wU/2tP/o7rq7H/3HOWfbyfGVW gpxZXvdswLt5agrAu+b7dysrspCRus54qiNTFf3irG+7jHv61Ezn9Q422GqNXHIwvAud XQVBRBixxcrera18mXQ7v/fgU+7qfMpyyWIGv2ty7+f1m0PVLLu6EsK74FGbwldqiB6U BF4RvPvizswBVHo0aI2g31UZ34K3S8JzkrrQWfD1Eq65Qgpt/R2dZLY1T83yZqkL3a1U tI2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706199260; x=1706804060; h=mime-version:to:subject:date:from:references:in-reply-to:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WHQPluHBd2Q3Xq2tluG6lkwl0/wxzENIkCvoGAemI1o=; b=OGAWYdXrzruhrqnvG7KyVZIQFoC1RtAsGJuOhEHGatwxvb2CsEbCn8zli3YHTucSgC j1f7DagnMwO8sDbmhLu+JJJ8CW3TuvSGZYXuO9jb7gicE5oJYDGqc9fzTxwTS/1DxBpW 1JGu+Pi0zC+1vABbrNf1L3kKnAvWx8sLJAzaKapKlkH5SPQpe/CmG39p72D2UlgYfafT 2DUzdBBfIcKngxWc0IrhpKCKKrl+KLI2bK7xQBmy3QfRtY+MKdiI87MQQHqBcEvar29J LRInAC9qTRFCovxV5nylQ7ekOiWXZM70vt6WV+Bw1se71t/06b7zE7MjdLsaMz/ttziJ hjRA== X-Gm-Message-State: AOJu0YxAPA0p7+4Q85CMjyGuxIJcViSh1nwYR/8W4QSN4yf+IMXkQVdj QysmwOwAs2YrxLYEtNSuV75rsSmsugjQBy0z4HXOj26hZk4K9OT+Is+2UmmkhLM= X-Google-Smtp-Source: AGHT+IH4sVtrxSjdyYsfi2megplA3fLzhbK2kRkXb0PacOZ45/CbsZoLcgx1SnJrAh1NodTfMJWPNg== X-Received: by 2002:a17:907:367:b0:a30:858f:6186 with SMTP id rs7-20020a170907036700b00a30858f6186mr894779ejb.40.1706199259527; Thu, 25 Jan 2024 08:14:19 -0800 (PST) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id vo6-20020a170907a80600b00a317b2b5adfsm787841ejc.160.2024.01.25.08.14.19 for <68712@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 08:14:19 -0800 (PST) Message-ID: In-Reply-To: References: From: Liliana Marie Prikler Date: Thu, 25 Jan 2024 10:44:44 +0100 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/potassco.scm (python-clorm): Reindent with emacs. --- gnu/packages/potassco.scm | 58 +++++++++++++++++++-------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/gnu/packages/potassco.scm b/gnu/packages/potassco.scm index afc4c4d513..0ec6253099 100644 --- a/gnu/packages/potassco.scm +++ b/gnu/packages/potassco.scm @@ -406,38 +406,38 @@ (define-public python-clingo-dl (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, + (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))) + (license license:expat))) (define-public python-telingo (package From patchwork Thu Jan 25 09:46:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liliana Marie Prikler X-Patchwork-Id: 59389 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id D1A0627BBE2; Thu, 25 Jan 2024 16:15:48 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED, URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5CDF427BBEA for ; Thu, 25 Jan 2024 16:15:44 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rT2Nc-0005IR-Jo; Thu, 25 Jan 2024 11:15:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rT2NY-0005Go-Jb for guix-patches@gnu.org; Thu, 25 Jan 2024 11:15:01 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rT2NY-0002Uu-7j for guix-patches@gnu.org; Thu, 25 Jan 2024 11:15:00 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rT2Ne-0007Tj-4i for guix-patches@gnu.org; Thu, 25 Jan 2024 11:15:06 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68714] [PATCH 3/4] gnu: Add python-plingo. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 25 Jan 2024 16:15:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68714 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68714@debbugs.gnu.org Received: via spool by 68714-submit@debbugs.gnu.org id=B68714.170619930028664 (code B ref 68714); Thu, 25 Jan 2024 16:15:06 +0000 Received: (at 68714) by debbugs.gnu.org; 25 Jan 2024 16:15:00 +0000 Received: from localhost ([127.0.0.1]:48974 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rT2NY-0007SA-5k for submit@debbugs.gnu.org; Thu, 25 Jan 2024 11:15:00 -0500 Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]:52376) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rT2NS-0007RZ-To for 68714@debbugs.gnu.org; Thu, 25 Jan 2024 11:14:55 -0500 Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2cd33336b32so93156051fa.0 for <68714@debbugs.gnu.org>; Thu, 25 Jan 2024 08:14:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706199283; x=1706804083; darn=debbugs.gnu.org; h=mime-version:to:subject:date:from:references:in-reply-to:message-id :from:to:cc:subject:date:message-id:reply-to; bh=dWohe1Cppb3tmU97J+Nf5Zrpa5aicjvatuyNzph0Aeo=; b=PD4AqR01XdCaEImer9PdSkAyHFeILVICprLeo+O2CJU5Rj29NrHkBjZUCP+3p74iu6 w47UXTK0q3icdHfzj0ORcppyA5txXkaCAqWbElF8ZKGwgd0AnJBpxWBDSTJqaVFL0MAC vd5HEXY60aUYFu3wnGrZ1Vxd1/uWp6wfHitCGsl6NFfwpOpUwmBFve1rNm9ElqhUR0c5 llWgpAGc0a3GIApMZcJTR8z8h5kz/usY96JHVVtuOAXxwB19fRuiW1aGJW4vtvCTlz8W 8J3e7tpxSB4KQZ1vqrtNisdoyZ+2wPQU76FG5escjNLL953MqLp61Rg4WOzeNTvxiTO/ wrTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706199283; x=1706804083; h=mime-version:to:subject:date:from:references:in-reply-to:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=dWohe1Cppb3tmU97J+Nf5Zrpa5aicjvatuyNzph0Aeo=; b=XeoGeGVEV36wSKhUUa5uZALrSkhQSJ8Q5QRbFqU1++UuzizoSoHtiWLXc9W1j9hv1w FJkIxwMYZ0gm2mGHUEqv3RBA8HzLjHb8ineaQ3Rw/xBIIpM3Lj25PM+8z6Wn9RygHb8v 16Ie8snym8D8MjQ413/lx6J7Fbr5a6GOpahdFFfac6Br41RaGlYqlNtrtvbeeTByHBp3 7KuiXcPBamG5hah3D60D7AwH+IYD+cP2nRsRQ8Ccm2S3wzQ2HhQeTlP6H0AshQ7lXdM5 akM/viD25KPzPPi7nqkL9gA0IEc/JmwvkN8SQx93LNSE2U2efUTE3f3OVhld6VYoMqlG spgA== X-Gm-Message-State: AOJu0Yxw0ccMLDGsS4Zr/ouultF3h6Rlp1/lvTzQt2HDK+YSQUqcdSHK uyFaudqrnkJbcEZVh9z56aMeXUUfOO3goX39HZKTycY+Ubu9K+24V1aKjEHU X-Google-Smtp-Source: AGHT+IG8HVAeUt6TtyywLgOvaUTlM1LR94NWWcZbXXRJosPYIpZI+LVgW9qVKRhccbME8J9pZY4ikQ== X-Received: by 2002:a2e:90c3:0:b0:2cc:ea5b:ba6b with SMTP id o3-20020a2e90c3000000b002ccea5bba6bmr604722ljg.26.1706199283010; Thu, 25 Jan 2024 08:14:43 -0800 (PST) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id vx10-20020a170907a78a00b00a3162e76a6csm1026885ejc.215.2024.01.25.08.14.42 for <68714@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 08:14:42 -0800 (PST) Message-ID: In-Reply-To: References: From: Liliana Marie Prikler Date: Thu, 25 Jan 2024 10:46:07 +0100 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * 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")