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 2CQPOlFBs2VNBAAAqHPOHw:P1 (envelope-from ) for ; Fri, 26 Jan 2024 06:21:22 +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 2CQPOlFBs2VNBAAAqHPOHw (envelope-from ) for ; Fri, 26 Jan 2024 06:21:22 +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=IvykJekq; 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=1706246481; 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=dWohe1Cppb3tmU97J+Nf5Zrpa5aicjvatuyNzph0Aeo=; b=IzycBvSLw2hH70COXhIiLl5/FlsdOHtXZDzrRoJgaMEfXCRHSujuxW8Zvu/Amavzf2VAQb fxbDi5AWC9CCx6+3Yp/JcLbzq4hIRgNnSL3Q8nk6Gfn3LDP10ZvlhBzauoIbr9rkhIGMEB 4VqCPneelnN21MOLUAegOZtV4/6HSeFEuwMHK7fLaZ4UXlJeBAr53oc3gYLqz+e3VUwTDG H8eDEY6pn6BmXGn+D0eb2xUyfpOFBgsSnhIxzdHhxozwLo4YR4w7M02ffy/7BizPv26oYC pi9EPmmYZ+RYq3h98gu6jl4LptOz9p32iuRNdl2HXLU+R6Y6ONtNdJLpz7ALAQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=IvykJekq; 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=1706246481; a=rsa-sha256; cv=none; b=fWzgP88J8jVlIo9dfRtcTHf8kgNq6T20qJZgQ1KukTAXP2f8d5F9cmiF6WYwdi0HiNG8TK XWMd3Q/RVt7HeL8l4qW5NY5T2NxAoxl/nOUJAYM6ceRMLF14BN7e4XSYcGmjvFryka86X0 w5te5/NoJ1ya6ZEsAT0KYuDhEX9a2UFVca/rPI/91BZNs6Pn9OHvRSs07Ectz+rW0OsYpR FBoUnyD/I0GsRVVUkP+igUOzfwva3UsTm3XyMbLrsTAZfvApudratsxEAg9zJldG+73XST T7STpl9XfzUaHUUiDvOXlgfLsynBLhW/C6koWQCm7T9iUHx5sqMYN1GIS4CtyA== 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 BF54A1DB2F for ; Fri, 26 Jan 2024 06:21:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rTEeA-0002PQ-I7; 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 1rTEe9-0002Os-Jh for guix-patches@gnu.org; Fri, 26 Jan 2024 00:20:57 -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 1rTEe9-0005mY-B4 for guix-patches@gnu.org; Fri, 26 Jan 2024 00:20:57 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rTEeF-00010h-JH for guix-patches@gnu.org; Fri, 26 Jan 2024 00:21:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68713] [PATCH 3/4] gnu: Add python-plingo. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 26 Jan 2024 05:21:03 +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.17062464413834 (code B ref 68713); Fri, 26 Jan 2024 05:21:03 +0000 Received: (at 68713) by debbugs.gnu.org; 26 Jan 2024 05:20:41 +0000 Received: from localhost ([127.0.0.1]:49894 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTEdt-0000zg-DI for submit@debbugs.gnu.org; Fri, 26 Jan 2024 00:20:41 -0500 Received: from mail-ed1-x541.google.com ([2a00:1450:4864:20::541]:52732) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTEdq-0000z8-Kk for 68713@debbugs.gnu.org; Fri, 26 Jan 2024 00:20:39 -0500 Received: by mail-ed1-x541.google.com with SMTP id 4fb4d7f45d1cf-55cca88b6a5so1980868a12.1 for <68713@debbugs.gnu.org>; Thu, 25 Jan 2024 21:20:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706246426; x=1706851226; 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=IvykJekq63TUHecXim292lE0nI1cZtQXN3oCwKud+RnDqm0DvjcIF8zXDLoHRyQWHX tN3gkNB+XPxPDiZfHXGJpOV5UBwTzkqnzrRY5WRcl0xcZCB9YhzpUUoH6DqsUO/IpmmB iNXRCQY1bOd/ZcIqfifsOxZ+oekSi5zcswAy9dtgKRZhd6KynbWXopdgHv62gAWDqs+u OVX6oU466Se8OGi1JtyWdfjuirLs2v+kkj7jbgcm+p70oLvR5rST5w2f7sHUWZi0yqwa DgOmm/6stCgAOV/10HWZCS4dXqhYOQOzF2JJsP35AP/UsNTQMCspyXYwqohlNg12JAbY ulmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706246426; x=1706851226; 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=EeQI/ofK8PDaXdllAiqs9NRqvs3/dlnxtdZrSGDzxCkhKrREYlla6hun5UblGtJSNL 3UoxfI0cjAZ9bZMIAHwBIUQoUFv9YK2FleKIjr2fXz5UXjWn6CYX5slcZ8BAi4GTBZD2 A1gXu92PLR0fqPB7x9dyQ8vuktMMk2DBHu6l6AYrcnUroIELO5b4zlhRRwkwjbWy6gAG 6ktN9UFPM9PDMwRT/h7B21ujz667JawvfhC8sDY38Cb25G/uUEablhpNq5H62MLEytco VeMZPlytK5PC3aKzCuwQHpoBjt21w+DdzNI5Hn602jTkSrJa7F6nkELJ3QN+g1eXGvf7 3c0w== X-Gm-Message-State: AOJu0YwholMNWGFJPBDAH7WRrmfHvDCNaSKLokYrL4+ev9N55+0iWrBN kawiBlEXTPvSfTUpv/I9m+K4U/jEsDxkc1cvvx2lhzIiSDE6a/DE4GonvQ21vl8= X-Google-Smtp-Source: AGHT+IGuoiEKqCuJZINHwojs8ttft8DpV1Bk6UGv71aRKcvVZKUPkfBvO4+7bAGqVNcI8Pax5ddCYg== X-Received: by 2002:a17:906:2f87:b0:a2e:556:f114 with SMTP id w7-20020a1709062f8700b00a2e0556f114mr301569eji.25.1706246426188; Thu, 25 Jan 2024 21:20:26 -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.25 for <68713@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 21:20:26 -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+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: 3.83 X-Spam-Score: 3.83 X-Migadu-Queue-Id: BF54A1DB2F X-Migadu-Scanner: mx12.migadu.com X-TUID: sZGYPxBceTEU Message-ID: <20240125094607.vBensihfmSWIp6-G5F_WB4BHQHMb5QIooH9I_jeJBWc@z> * 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") -- 2.41.0