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")