From patchwork Mon Jan 29 18:17:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Troy Figiel X-Patchwork-Id: 59560 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 53F9A27BBEA; Mon, 29 Jan 2024 18:22:13 +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.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5,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 986B827BBE9 for ; Mon, 29 Jan 2024 18:22:12 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rUWGb-0001JS-De; Mon, 29 Jan 2024 13:21:57 -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 1rUWGY-0001Hs-NK for guix-patches@gnu.org; Mon, 29 Jan 2024 13:21:55 -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 1rUWGY-00006X-F1 for guix-patches@gnu.org; Mon, 29 Jan 2024 13:21:54 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rUWGg-00013v-Q1 for guix-patches@gnu.org; Mon, 29 Jan 2024 13:22:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68789] [PATCH 2/2] gnu: Add python-pyjanitor. References: <87il3df4y5.fsf@troyfigiel.com> In-Reply-To: <87il3df4y5.fsf@troyfigiel.com> Resent-From: Troy Figiel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 29 Jan 2024 18:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68789 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68789@debbugs.gnu.org Received: via spool by 68789-submit@debbugs.gnu.org id=B68789.17065525154063 (code B ref 68789); Mon, 29 Jan 2024 18:22:02 +0000 Received: (at 68789) by debbugs.gnu.org; 29 Jan 2024 18:21:55 +0000 Received: from localhost ([127.0.0.1]:33454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUWGZ-00013S-6a for submit@debbugs.gnu.org; Mon, 29 Jan 2024 13:21:55 -0500 Received: from mout-p-103.mailbox.org ([80.241.56.161]:40758) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUWGW-00013F-N2 for 68789@debbugs.gnu.org; Mon, 29 Jan 2024 13:21:53 -0500 Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (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-103.mailbox.org (Postfix) with ESMTPS id 4TNxTD43swz9sW7 for <68789@debbugs.gnu.org>; Mon, 29 Jan 2024 19:21:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=troyfigiel.com; s=MBO0001; t=1706552496; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=c0hkTnT9CaeRFNqmELTsZ8+z4c+kYx3REAcQlBzoDOs=; b=UDxHYrc/KLkHruJKRkzPyEOEq5UsE+HE4aBdsF/eobN6lsOzHJ1AvII22BqtZYRDl8AfMx rWcgeqci7munbZM05KMMYa7wdBY1PZHU+h5SQxg7b1koRLbIwruo61fHcire+EcanHKNkk knONkHOv3v0LTcptFnj0+WBiMO+GyQGR7D9MHEuJDrpTFbQOK3sQ1jMhW5KsK6l0ITC0Iu l0h4VKxQLkhO+ywwsxbn5N6T224Nq4P4nCnSRrchFWuy07t7hh1oCBOTpKs0+cbPcRRcBo z0DZvlWR9wR4mahtoZgA2u/mcVwKDF6HQNPLz3G8LpydxHLrYY4jiAf+XV1TlA== From: Troy Figiel Date: Mon, 29 Jan 2024 19:17:14 +0100 Message-ID: <87bk94f1an.fsf@troyfigiel.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: 4TNxTD43swz9sW7 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/python-science.scm (python-pyjanitor): New variable. --- gnu/packages/python-science.scm | 59 +++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 3390b918a4..643fb69f3f 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -47,6 +47,7 @@ (define-module (gnu packages python-science) #:use-module (gnu packages boost) #:use-module (gnu packages build-tools) #:use-module (gnu packages check) + #:use-module (gnu packages chemistry) #:use-module (gnu packages cpp) #:use-module (gnu packages crypto) #:use-module (gnu packages databases) @@ -840,6 +841,64 @@ (define-public python-pandera @end itemize") (license license:expat))) +(define-public python-pyjanitor + (package + (name "python-pyjanitor") + (version "0.26.0") + (source + (origin + ;; The build requires the mkdocs directory for the description in + ;; setup.py. This is not included in the PyPI tarball. + (method git-fetch) + (uri (git-reference + (url "https://github.com/pyjanitor-devs/pyjanitor") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1f8xbl1k9l2z56bapp7v6bd3016zrk48igcaz6hb553r6yfl7vfx")))) + (build-system pyproject-build-system) + ;; Pyjanitor has an extensive test suite. For quick debugging, the tests + ;; marked turtle can be skipped using "-m" "not turtle". + (arguments + (list + #:test-flags '(list + ;; Tries to connect to the internet. + "-k" + "not test_is_connected" + + ;; PySpark has not been packaged yet. + "--ignore" + "tests/spark") + #:phases #~(modify-phases %standard-phases + (add-before 'check 'set-env-ci + (lambda _ + ;; Some tests are skipped if the JANITOR_CI_MACHINE + ;; variable is not set. + (setenv "JANITOR_CI_MACHINE" "1")))))) + (propagated-inputs (list python-multipledispatch + python-natsort + python-pandas-flavor + python-scipy + + ;; Optional imports. + python-biopython ;biology submodule + python-unyt)) ;engineering submodule + (native-inputs (list python-pytest + + ;; Optional imports. We do not propagate them due to + ;; their size. + python-numba ;speedup of joins + rdkit)) ;chemistry submodule + (home-page "https://github.com/pyjanitor-devs/pyjanitor") + (synopsis "Tools for cleaning and transforming pandas DataFrames") + (description + "@code{pyjanitor} provides a set of data cleaning routines for +@code{pandas} DataFrames. These routines extend the method chaining API +defined by @code{pandas} for a subset of its methods. Originally, this +package was a port of the R package by the same name and it is inspired by the +ease-of-use and expressiveness of the @code{dplyr} package.") + (license license:expat))) + (define-public python-pythran (package (name "python-pythran")