From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id qPR3MSaJsmUaFAEAqHPOHw:P1 (envelope-from ) for ; Thu, 25 Jan 2024 17:15:34 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id qPR3MSaJsmUaFAEAqHPOHw (envelope-from ) for ; Thu, 25 Jan 2024 17:15:34 +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=aNdSFl2R; 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=1706199334; 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=YhyPvbaY4Iq9CRO20edmLK8r9doBlp1OL2fxmwbdoajx0SjdpUtJoyN/8rU+9kPWVCq0yX F5+Uf7HKWjeoL6l2V0pa7fFOXkLjWoVCvdeunwvzWUibmLzfzeBOe7rNZrBYWGMS8r+NWi 8ZvdIKkfOt6IbUAil5r0Jf+a4G5Dktf30KtlEYWoC0RwCn4mBbRRHI27av1y6zqDIqKTyX nYkyqWUJQ0CyaMLk5ncryAqgxMYzPvqHkh/nMNSn1QtUdFVnV60znreTLAiPZVTBodOeOK 6/wsc6nr2VTwOUPqyRTcLJkO5Qqbt5gAxI8TBuIFgoW2oP33t9ui7/BWPro+Jg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=aNdSFl2R; 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=1706199334; a=rsa-sha256; cv=none; b=tBk71FqqZkBlltOIcF0syDC+eMb7ECCb+LqpCgAZVyDuZyAtD2uL7Du/forDOsxHK0RyQj kCd8R9WNIM7Lq0wy9/5ESwj7LLSmdcab0kU4Y5iXVyLP1jb8xM/CnRsBmGKMJt1vd4f/Xp g83KeQJnUQ/BkRICIudObpXtmQ39KCnp6Ujuw2tRcJx0OmTh1k4itPWDP8uATxDWEykyel PqW8EdiG3z2S3cM1ysb+Uq1LdOp++jdoABLrqWktTeFyit8nuuTK1CuK5qKVvsKvh6SZKb BhU4HG4D4XuaiESvOAtS8fM3WbUqr0jzT+tD+LrzA++SqHCBAp14Z9bvuClyPQ== 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 80D30234E9 for ; Thu, 25 Jan 2024 17:15:34 +0100 (CET) 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+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-Spam-Score: 5.83 X-Spam-Score: 5.83 X-Migadu-Queue-Id: 80D30234E9 X-Migadu-Scanner: mx12.migadu.com X-TUID: AtOraRdJoAaD * 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 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