From patchwork Mon Sep 27 02:20:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Prior X-Patchwork-Id: 33346 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 0178727BBE3; Mon, 27 Sep 2021 03:21:23 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id EAD4627BBE6 for ; Mon, 27 Sep 2021 03:21:17 +0100 (BST) Received: from localhost ([::1]:36172 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUgGb-0005nL-2O for patchwork@mira.cbaines.net; Sun, 26 Sep 2021 22:21:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41164) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUgGO-0005he-1v for guix-patches@gnu.org; Sun, 26 Sep 2021 22:21:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55923) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUgGN-0007GS-QB for guix-patches@gnu.org; Sun, 26 Sep 2021 22:21:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mUgGN-0002TZ-Mg for guix-patches@gnu.org; Sun, 26 Sep 2021 22:21:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50836] [PATCH 5/5] gnu: Add python-minikanren. Resent-From: Ryan Prior Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 27 Sep 2021 02:21:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50836 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50836@debbugs.gnu.org Received: via spool by 50836-submit@debbugs.gnu.org id=B50836.16327092399431 (code B ref 50836); Mon, 27 Sep 2021 02:21:03 +0000 Received: (at 50836) by debbugs.gnu.org; 27 Sep 2021 02:20:39 +0000 Received: from localhost ([127.0.0.1]:39231 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUgFy-0002Rx-TK for submit@debbugs.gnu.org; Sun, 26 Sep 2021 22:20:39 -0400 Received: from mail-4316.protonmail.ch ([185.70.43.16]:42131) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUgFt-0002R3-OO for 50836@debbugs.gnu.org; Sun, 26 Sep 2021 22:20:34 -0400 Date: Mon, 27 Sep 2021 02:20:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1632709227; bh=chp9Ivgil+hkriqI2VBwUEG6FdfNpNNS8WA2unkb+5Q=; h=Date:To:From:Reply-To:Subject:In-Reply-To:References:From; b=CX9MMI0m/E0CGhoiYO2I+jDOoySbIsRG31NPp3waW6o11und3uOVZxbXq2J1x872W qQoscEcOkaIUrV8vpdcAxYIJEOpbPRVdRVVo2SkO8OKKcc/SCARGGSFuopJZoMBcSC YlDizmSiIRS66X67mIcLiebbnYA48YNmZRPrtIwc= Message-ID: <20210927022011.30839-5-rprior@protonmail.com> In-Reply-To: <20210927022011.30839-1-rprior@protonmail.com> References: <20210927022011.30839-1-rprior@protonmail.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" Reply-to: Ryan Prior X-ACL-Warn: , Ryan Prior via Guix-patches X-Patchwork-Original-From: Ryan Prior via Guix-patches via From: Ryan Prior X-getmail-retrieved-from-mailbox: Patches gnu/packages/python-xyz.scm (python-minikanren): New variable. --- gnu/packages/python-xyz.scm | 46 +++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) -- 2.33.0 diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 0b002c42dc..4437de6374 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -26677,6 +26677,52 @@ cons cells in Python.") "This library implements eval'able S-expression in Python using tuple-like objects.") (license license:asl2.0))) +(define-public python-minikanren + (package + (name "python-minikanren") + (version "1.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pythological/kanren") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0g7wfj5hxalwz7k1301nsjqhjpzsif1bj6wjm2x2kavlm2ypv9jc")))) + (build-system python-build-system) + (arguments + '(#:phases (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "python" "-m" "pytest" "-v" "tests/" "kanren/")) + #t))))) + (native-inputs + `(("python-coveralls" ,python-coveralls) + ("python-pydocstyle" ,python-pydocstyle) + ("python-pytest@6.2.4" ,python-pytest) + ("python-pytest-cov@2.8.1" ,python-pytest-cov) + ("python-pylint@2.5.3" ,python-pylint) + ("python-black@20.8b1" ,python-black) + ("python-sympy@1.7.1" ,python-sympy) + ("python-versioneer@0.19" ,python-versioneer) + ("python-coverage@5.2.1" ,python-coverage) + ("python-pre-commit@2.10.0" ,python-pre-commit))) + (propagated-inputs + `(("toolz@0.11.1" ,python-toolz) + ("cons" ,python-cons) + ("multipledispatch" ,python-multipledispatch) + ("etuples" ,python-etuples) + ("logical-unification" ,python-logical-unification))) + (home-page "https://github.com/pythological/kanren") + (synopsis "Relational logic programming in pure Python") + (description + "The minikanren library provides an algorithmic core for computer algebra +systems in Python.") + (license license:bsd-3))) + + (define-public date2name (let ((commit "6c8f37277e8ec82aa50f90b8921422be30c4e798") (revision "1"))