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