From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id GM3wKS7btmWDmQAAe85BDQ:P1 (envelope-from ) for ; Sun, 28 Jan 2024 23:54:38 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id GM3wKS7btmWDmQAAe85BDQ (envelope-from ) for ; Sun, 28 Jan 2024 23:54:38 +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=ycrnZYFJ; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=troyfigiel.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706482478; 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=vrGLBvlxvw5+A/R15uuBcU6I65xwl1Ybe0iZciMz6Us=; b=c9Z0feFLeXtJo1wIJgcwFFWydWOXZQ+CDzjsSYrHIEl3LlPRrIDrXdoMCsKzQCkTSBaa6d NOq0K+bG8ZxpvX6GRJlCsHF5lkizduZPVIBF0JLeHV935L4xocaRWbgA5+Zs/mrIjAEsZR gnk4ImPiV0am0Irlb92NSMcM5XarlkLetvFNhwTP8Lp8svcE9bxpC4jPuu7hpTCZ8W7UIt M2kCR2HS7fU9qihML4rJ0wfLrl3v8/wGwIfS9e9BAYei64jYE0IeGh5nZS1YNN5yVOai07 FmtCjHOaGVnVtpbK3xvpG1iJ7coFmoZHxW8fUGLfn0NxdA4OnrVWvvzdZk9mLw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=troyfigiel.com header.s=MBO0001 header.b=ycrnZYFJ; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=troyfigiel.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706482478; a=rsa-sha256; cv=none; b=ic4kGcg4u/rw09DCrOjabJXUByVD6gTH6cs6LKuMRCZfSG54Dq7Zcy1E4JwlGcNbDAVh/b 5YwcA2ViHIFSagIm+48iR/AI+aX+s8WJCStP06bHSbyzcjouL9iV7OGYQrC5loSxuBgHw1 qQrfxDX1Qv5GqFB8Naea69OAAEM4TwJUYHoVZg3ZLYQNY0RO7psCm0G5LB1sVlfbK2G9PF /+DzHuuGvuQq4hAXohUHe/cCxmxF10hId2WBsCfjmni3t2KXxLTJM/yjv38qbVcRsUIUvg uyCfut085zTKLUIeS9HSOWffxAl6Ek6zWMf7fdel9X2jd1flJj/Qz5WMfpLzWg== 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 4A1314174C for ; Sun, 28 Jan 2024 23:54:38 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rUE2b-0004pB-Kv; Sun, 28 Jan 2024 17:54:17 -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 1rUE2F-0004m9-Cp for guix-patches@gnu.org; Sun, 28 Jan 2024 17:53:56 -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 1rUE2F-00048Q-4Y for guix-patches@gnu.org; Sun, 28 Jan 2024 17:53:55 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rUE2N-0004E6-0N for guix-patches@gnu.org; Sun, 28 Jan 2024 17:54:03 -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: Sun, 28 Jan 2024 22:54: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.170648239416142 (code B ref 68789); Sun, 28 Jan 2024 22:54:02 +0000 Received: (at 68789) by debbugs.gnu.org; 28 Jan 2024 22:53:14 +0000 Received: from localhost ([127.0.0.1]:58575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUE1a-0004CI-0C for submit@debbugs.gnu.org; Sun, 28 Jan 2024 17:53:14 -0500 Received: from mout-p-102.mailbox.org ([80.241.56.152]:39170) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUE1Y-0004Bq-L2 for 68789@debbugs.gnu.org; Sun, 28 Jan 2024 17:53:13 -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 4TNRXm4sVzz9sm2 for <68789@debbugs.gnu.org>; Sun, 28 Jan 2024 23:52:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=troyfigiel.com; s=MBO0001; t=1706482376; 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=vrGLBvlxvw5+A/R15uuBcU6I65xwl1Ybe0iZciMz6Us=; b=ycrnZYFJ16/O6lkaJJxXjuvzOYgaFFNwmydm0Nw9M5ATC4Hjk2WmWoyBSQUt+3EeP77GeZ utK4HmkBMmnk2lVSCYfVp/DfYhgbEXKGQtR2HCZrD5iBlLdDxnk6PZzf9Jzm6ubdtb2g73 beZvOxXQFxiTWzTVxvpQCyBmqNP8vqrzhsxCicUqUtaeIx2aAUY7yTb/FGXBWC7vJnlASA 6vjGZ1adHO5t7jRHzSDOe/EFXS1ZpC655V3L2/rnZAY4dXSc7Ac5Af5dGnzo9BoIJ+dRsg EHLUmzKThN6y3ByqkPFw2ST9dBsEsLxRsYEDjJI1RTNzyEtjNtTVPtS42gA7Jw== From: Troy Figiel Date: Sun, 28 Jan 2024 23:13:19 +0100 Message-ID: <87fryhf4u0.fsf@troyfigiel.com> MIME-Version: 1.0 Content-Type: text/plain 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-Spam-Score: 2.25 X-Migadu-Queue-Id: 4A1314174C X-Spam-Score: 2.25 X-Migadu-Scanner: mx11.migadu.com X-TUID: 9y1RQlnsE2Qo * 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 3013c77c34..00b7e6cae1 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -48,6 +48,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) @@ -771,6 +772,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