From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id kEq/FVxBs2V/cAEAqHPOHw:P1 (envelope-from ) for ; Fri, 26 Jan 2024 06:21:32 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id kEq/FVxBs2V/cAEAqHPOHw (envelope-from ) for ; Fri, 26 Jan 2024 06:21:32 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=JV+ivWII; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706246492; a=rsa-sha256; cv=none; b=kN1SSzl+bIqUu5aXR2TQh+PeWWsOTI6uYjQbhVXoXxx2gQbhjS+bptNT5KpD/CVTavZBBu vvqRwztyskBOTm8ianhIak+XR/0XzGZ41JBfPwNwBaDPpYVKpvAOQ2LLxqVU+5SUUvpmQg bOB2/p+ivDVHXcEFRkeq2lQU0C8IKjaWPpvaSPlJI4PLxW3RgBp2bimzJ3cyFQCdXr3yd4 1WJt6juUzSaCMTIJmrUfpTIoMJ2Xu60Y8B220wCeFDpUIa9vBFAEnqHjK9UEcwcPtJ4sah CYBTElLCht+sDspIjX5TzDsItyCEyPzjDYtw94zrw9mKVVos+E/QmxtyD9A7Rg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=JV+ivWII; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706246492; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=b4Lp71Uo4hld3FMSbdz67PN2vONEVdDfpOSHW4KpYPQ=; b=PT0LkColnc6zCUOn2/qorO3IGE3G8W4Hqfj0735gr5ZxxUA87iKkbF/Y0PFPKcdj7g0CY4 T8BHB/J1/Ue9olbLYxX2O7sy2K3hBNQPg4xt5TDd9R1nKeJSzrU7oFup168B34OuF08aM/ 8X5ZCLYh76C2QMygvG8qztgTiSb8SSk0oXsHtr1tgtZzgqIMhDaPiwL1h5AF/Mx/Q5Bd+9 LMy7k9QeFcnNHc4SpsQk2PCQqjb1Srs/y/dmTjGzc733MciT1VqTvgO9RHzMPK6LQ8rmD/ pnGreP6fVLH0j0QovzX3rXUQhX8oTIN5jaHRNfvyL2HrAINSVVykAtQj5rOY5A== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id DB11D73E85 for ; Fri, 26 Jan 2024 06:21:31 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rTEeA-0002P5-3G; Fri, 26 Jan 2024 00:20:58 -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 1rTEe8-0002Ob-R2 for guix-patches@gnu.org; Fri, 26 Jan 2024 00:20:56 -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 1rTEe8-0005mK-Ip for guix-patches@gnu.org; Fri, 26 Jan 2024 00:20:56 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rTEeE-00010S-K4 for guix-patches@gnu.org; Fri, 26 Jan 2024 00:21:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68713] [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: Fri, 26 Jan 2024 05:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68713 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68713@debbugs.gnu.org Received: via spool by 68713-submit@debbugs.gnu.org id=B68713.17062464413820 (code B ref 68713); Fri, 26 Jan 2024 05:21:02 +0000 Received: (at 68713) by debbugs.gnu.org; 26 Jan 2024 05:20:41 +0000 Received: from localhost ([127.0.0.1]:49890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTEds-0000zV-5c for submit@debbugs.gnu.org; Fri, 26 Jan 2024 00:20:40 -0500 Received: from mail-lf1-x144.google.com ([2a00:1450:4864:20::144]:49460) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTEdp-0000z5-Sb for 68713@debbugs.gnu.org; Fri, 26 Jan 2024 00:20:39 -0500 Received: by mail-lf1-x144.google.com with SMTP id 2adb3069b0e04-50ea9daac4cso8202644e87.3 for <68713@debbugs.gnu.org>; Thu, 25 Jan 2024 21:20:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706246425; x=1706851225; 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=JV+ivWIIbsV4mssCtrcnqpVP/kBNGqul5TnZyPp55UthxWnGY0zEsmSr+C6NWToP4U MZfPwU3ewn6sFd2n7IERQlrVePyz7Ozm6ZFd7FUw5VUm+m1ivmGGi12ITzj6XvXZdLgU Lf1Vg5VlrtS4aRZUp2h2w6896+/gXZYpmPwxl6O+wfpzNpsIcAqY1WFNAopS+trj9Rni eBOnWYBxdsj2AkE5cjGQOfyAk6HR5d5QkDu1meMid5EQRQGKz6dFFwI+CqQKO+gK3MBv X8icLWptN0dNdvWdLjO37tTAN9JTfMfPggdr2LBEh4vKSpXHCW26pGs1D8QXlX1RbB8f jvNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706246425; x=1706851225; 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=e3UVgS91jxc47Gzu7NiZPTY8SsoVY/7DN5iUq3Go1XXtQH4B9uuAqc8Kktjbxgm7bb qjEfmZwg0hvoI2AVUrmY+/Db1ucv4kFBCAk0soSI5I38ermUOCdr0u0C96gCEQ12Ij2n ITIv/NZkj+vNFHiV7qDJ2sLm8Dp5pbcPLftKKA5bc6GsLMvJZ4r8lVM2Rr5KcM4SDly1 BjKNXytvD8r3/dfjGemVdxFZjYbrMo8uSg5z5tLXdTvxKvWSaO7FJcORQZp+8x70IrsE jtlQ1BKtGqfUpqvpTBqn/Jf9IieLkdKd+uhflT8p7ksdKvfeSXpq8wJhfk0+amrPKWxI zr0w== X-Gm-Message-State: AOJu0YzWJqKC77xmMkXxLGr60+qEgaA5s55nfp315zDsf5g/hD+GHRwE HIwUFGOGbGFU9LgHV7x/aD8ktccCagNamAWA9GjM4PJuMTGIgmXp8c0U6JPzIwA= X-Google-Smtp-Source: AGHT+IGsGfdxHGQ4CIZr+WxRCInP+JX1X1NzuF4S+wJMBJYAtb86idh48F2rnG7Qjo8bBPSrtDiZSg== X-Received: by 2002:a19:645b:0:b0:50f:ff88:18cf with SMTP id b27-20020a19645b000000b0050fff8818cfmr397813lfj.5.1706246425061; Thu, 25 Jan 2024 21:20:25 -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 lc17-20020a170906dff100b00a345f532391sm218696ejc.79.2024.01.25.21.20.24 for <68713@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 21:20:24 -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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Spam-Score: -0.57 X-Migadu-Queue-Id: DB11D73E85 X-Migadu-Spam-Score: -0.57 X-TUID: 1Xhw7t5lYYfi Message-ID: <20240125094206._mcBlbnplWduXUvOknFimz7fvF6uHcnVh2N3QTFCfUw@z> * 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") -- 2.41.0