From patchwork Wed Aug 31 17:50:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arun Isaac X-Patchwork-Id: 42093 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 8E64527BBEA; Wed, 31 Aug 2022 18:52:14 +0100 (BST) 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,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable 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 44CD027BBE9 for ; Wed, 31 Aug 2022 18:52:14 +0100 (BST) Received: from localhost ([::1]:35674 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTRsr-0003XD-Bp for patchwork@mira.cbaines.net; Wed, 31 Aug 2022 13:52:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59140) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTRsi-0003X2-8v for guix-patches@gnu.org; Wed, 31 Aug 2022 13:52:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50666) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTRsh-0007M6-Rf for guix-patches@gnu.org; Wed, 31 Aug 2022 13:52:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oTRsg-0003aH-E6 for guix-patches@gnu.org; Wed, 31 Aug 2022 13:52:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57508] [PATCH] gnu: Add python-pymonad. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 31 Aug 2022 17:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57508 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57508@debbugs.gnu.org Cc: Arun Isaac X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166196827013713 (code B ref -1); Wed, 31 Aug 2022 17:52:02 +0000 Received: (at submit) by debbugs.gnu.org; 31 Aug 2022 17:51:10 +0000 Received: from localhost ([127.0.0.1]:40415 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTRrq-0003Z5-AX for submit@debbugs.gnu.org; Wed, 31 Aug 2022 13:51:10 -0400 Received: from lists.gnu.org ([209.51.188.17]:43878) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTRrl-0003Yv-IL for submit@debbugs.gnu.org; Wed, 31 Aug 2022 13:51:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56446) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTRrk-0003UR-Nr for guix-patches@gnu.org; Wed, 31 Aug 2022 13:51:05 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:47888) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTRrg-0007JV-7w for guix-patches@gnu.org; Wed, 31 Aug 2022 13:51:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=RUoNCxBKzO55gD3Hdx29avTWhP/245OBF0qY+4TcYug=; b=eAKsQ1MkQxMCq4WET/3cmgaNKj W7EcBBG0GS2EvkUCPIf3Pr9n8+6WMMsnNAoNsFipcC5E1TeFYttfiErVsHEo05FEkxjZ2Yu1r3zxk KwKefP24IIoSwGj5QXfVTlto59srJA0lU7KSsLc1wyKO5+DsbtRzUiV3s4HnWjSX0+PeBcEFw8r/l AE8umoZcmtHSl06ES8jeeYo2jDzga5bnmKLKGyIpWWpPgK6QHJbvuWE5XE/ZIP7m0Wyx5tMG9sxwW 4W9LWTwBhOa7Qe2zcIN4pARV3yDLu8cwpuxGu/PuNA9ZLpmrqr9jh+BRkysA8OTj2aAvei4zQKZiv WRjSgmrw==; Received: from [192.168.2.1] (port=19284 helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1oTRra-0009zC-31; Wed, 31 Aug 2022 23:20:55 +0530 From: Arun Isaac Date: Wed, 31 Aug 2022 23:20:53 +0530 Message-Id: <20220831175053.8306-1-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Received-SPF: pass client-ip=139.59.75.54; envelope-from=arunisaac@systemreboot.net; helo=mugam.systemreboot.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-pymonad): New variable. --- gnu/packages/python-xyz.scm | 39 ++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 9b3d5edb93..7ed713d7ca 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -29,7 +29,7 @@ ;;; Copyright © 2016-2022 Marius Bakke ;;; Copyright © 2016, 2017, 2021, 2022 Stefan Reichör ;;; Copyright © 2016, 2017, 2019 Alex Vong -;;; Copyright © 2016, 2017, 2018, 2021 Arun Isaac +;;; Copyright © 2016, 2017, 2018, 2021, 2022 Arun Isaac ;;; Copyright © 2016, 2017, 2018, 2020, 2021 Julien Lepiller ;;; Copyright © 2016–2022 Tobias Geerinckx-Rice ;;; Copyright © 2016, 2017 Thomas Danckaert @@ -30723,3 +30723,40 @@ (define-public python-lief "@code{python-lief} is a cross platform library which can parse, modify and abstract ELF, PE and MachO formats.") (license license:asl2.0))) + +(define-public python-pymonad + (package + (name "python-pymonad") + (version "2.4.0") + ;; The tests are incomplete in the PyPI archive. + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jasondelaat/pymonad") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0ci1mpydldiyg9qv6d19ljhfh7wxlrl2k4mlvqd9bm7dqvpdjsx7")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "./run_tests.sh"))))))) + (home-page "https://github.com/jasondelaat/pymonad") + (synopsis "Monadic style functional programming for Python") + (description "@code{python-pymonad} implements data structures typically +available in purely functional or functional first programming languages such +as Haskell and F#. Included are + +@itemize +@item Monad and Monoid data types with several common monads such as Maybe and +State +@item Useful tools such as the @code{@@curry} decorator for defining curried +functions +@item Type annotations to help ensure correct usage +@end itemize") + (license license:bsd-3)))