From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id SKc2NNTst2WZbAEAqHPOHw:P1 (envelope-from ) for ; Mon, 29 Jan 2024 19:22:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id SKc2NNTst2WZbAEAqHPOHw (envelope-from ) for ; Mon, 29 Jan 2024 19:22:12 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=troyfigiel.com header.s=MBO0001 header.b="UDxHYrc/"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=troyfigiel.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706552532; a=rsa-sha256; cv=none; b=BG/E6ZyNJKuSzHOY2VWVpuID6cuCrPDK32waS+i9DHJ6fpqBfmqYyauOmfPKn+8SbUfip9 Iw/lvQ+UWEcbUbQXec0f1oHaivVvkPZt6nuvZBGffBeaJ6Qs5vQ3PykBTA4Tc4sSY7DJUR TcWxFPu/MFgV0WCtrwQc8nGgXOPa72nhWFPCuntPilMa85YHjExeGNShWZYWS0qgXjSn0f pW8r8ZoYyucjJVnZ0pxg/Dy5035CsF7oRnB/tEj4HAzdBVOYv5kG4Icfr1nCiqv2FnHG7G d1+kpIzkZKBRRGGsQwjl6V3CsSuFx3Z1g+OF8UStY0yMPEq3v2dNGftXGIluAQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=troyfigiel.com header.s=MBO0001 header.b="UDxHYrc/"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=troyfigiel.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706552532; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=c0hkTnT9CaeRFNqmELTsZ8+z4c+kYx3REAcQlBzoDOs=; b=jfLIap0GNaha7Cpe5C8KCz8yucymueRXtDHOOkok95Or5qRnmMjrNjNtTXIUKnsTszg3Sc 2k5YtuJIfGnP7G6NWK64j+aUf5QmgfL+p4tPG+Nqk6IWW1+xrRlFtTAe0iHH3VuQc5SlO6 7BoyaoBQSMNJrFDQZHSidIH3707+yLnM906en9r6O16L5IuRwDANIgqVEX8lHNSBXrteoC zaOg51NDVWHRhCJJyqU0tP9jSI7s7Cdw579e7MVcJ4fdAjoWGsCzJeBm/7ZwdDPB/QZ+9y +vVSS2h3oGp8xtFWrg1hlZE9LohgiiLak3KzPfCbQTML9Zv+LV7iNHWF0E1irQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 99C4B73A44 for ; Mon, 29 Jan 2024 19:22:12 +0100 (CET) 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 Content-Type: text/plain 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Spam-Score: -5.76 X-Migadu-Queue-Id: 99C4B73A44 X-Migadu-Spam-Score: -5.76 X-TUID: P/gk3l/4javc * 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") -- 2.42.0