From patchwork Mon Feb 12 14:58:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Troy Figiel X-Patchwork-Id: 60421 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 A196027BBEA; Thu, 15 Feb 2024 21:47:12 +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_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED 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 D26C627BBE9 for ; Thu, 15 Feb 2024 21:47:08 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rajZ8-0005ya-SD; Thu, 15 Feb 2024 16:46:46 -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 1rajZ5-0005yD-Bt for guix-patches@gnu.org; Thu, 15 Feb 2024 16:46:43 -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 1rajZ5-0005b4-3q for guix-patches@gnu.org; Thu, 15 Feb 2024 16:46:43 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rajZN-0006jB-UG for guix-patches@gnu.org; Thu, 15 Feb 2024 16:47:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69074] [PATCH] gnu: Add python-pysmt. References: In-Reply-To: Resent-From: Troy Figiel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 15 Feb 2024 21:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69074 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69074@debbugs.gnu.org Received: via spool by 69074-submit@debbugs.gnu.org id=B69074.170803359825832 (code B ref 69074); Thu, 15 Feb 2024 21:47:01 +0000 Received: (at 69074) by debbugs.gnu.org; 15 Feb 2024 21:46:38 +0000 Received: from localhost ([127.0.0.1]:57623 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rajYz-0006iZ-Rg for submit@debbugs.gnu.org; Thu, 15 Feb 2024 16:46:38 -0500 Received: from mout-p-102.mailbox.org ([80.241.56.152]:38406) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rajYy-0006iM-5A for 69074@debbugs.gnu.org; Thu, 15 Feb 2024 16:46:36 -0500 Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4TbTCP28Ydz9sd9 for <69074@debbugs.gnu.org>; Thu, 15 Feb 2024 22:46:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=troyfigiel.com; s=MBO0001; t=1708033569; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Q/r4K23JsyGqX5OXS/AcSrq046foZZ4gR9y3dBo7ekY=; b=yGuZ4xXMunC8xOqCqcGdCrUWLSBWzEmEBUFtenITyjw8vAoJGBk/4YSSC5oQPEvcTFYQ7W J1QDlWCXVr2BqIoQaXeK1Ij1tSqEJw4o5PRNx2Uh7HhgiChxbwBm2HmdW/QTO9LCcQZJFw 1ADOV4giWZzOrQBF6uFHfiX8RKlMxSAMjk99ieVo5CN/gTz7cOYFhQnll1MsFubTYOS6L0 TxeOjFW6jSlDWXaL7mhcIP0G+iPQEJcWOxVRStO5N9afeDL0QZ4Eo2uMQAmBOsGcWddDac y+VddzDTtV6YQYq/+/S6eWpW2m5MePYQaSTs723C/2xnVXAYnuDaOVbADdULIA== From: Troy Figiel Date: Mon, 12 Feb 2024 15:58:21 +0100 Message-ID: <87il2pbdun.fsf@troyfigiel.com> 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 Hi Sören, here an example for python-pysmt, taken from your commit. It might be good to add a comment why you cannot stick to a fixed version like 0.9.5. Or ask upstream for a new version :-) * gnu/packages/python-xyz.scm (python-pysmt): New variable. --- gnu/packages/python-xyz.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 5fe5c0d60a..bb58e3aaa8 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -32303,6 +32303,39 @@ (define-public python-opcodes and BMI2).") (license license:bsd-2)))) +(define-public python-pysmt + (let ((commit "f7b599c228ee8b429aab1b82ddf167bd956ea8a3") + (version "0.9.5") + (revision "0")) + (package + (name "python-pysmt") + (version (git-version version revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pysmt/pysmt") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "05q70hk9rq3037f999ph5yi1ix4c91db29i17rxwcl6q24vlxiwg")))) + (build-system pyproject-build-system) + (arguments + '(#:phases (modify-phases %standard-phases + (add-before 'check 'set-pysmt-solver + (lambda _ + (setenv "PYSMT_SOLVER" "z3")))))) + (native-inputs (list python-pytest)) + (propagated-inputs (list z3)) + (home-page "https://github.com/pysmt/pysmt") + (synopsis + "Solver-agnostic library for SMT formula manipulation and solving") + (description + "This Python module provides a solver-agnostic abstraction for working +with @acronym{SMT, Satisfiability Modulo Theory} formulas. For example, it +allows manipulation and solving such formulas.") + (license license:asl2.0)))) + (define-public python-rpyc (package (name "python-rpyc")