From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id OOJXEP7YsmUB1wAAqHPOHw:P1 (envelope-from ) for ; Thu, 25 Jan 2024 22:56:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id OOJXEP7YsmUB1wAAqHPOHw (envelope-from ) for ; Thu, 25 Jan 2024 22:56:14 +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=Bdt4vjxG; 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=1706219773; 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: content-transfer-encoding:content-transfer-encoding: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=Zkg91YTs7YyxwTvavfPDivhn+hKr5tQguTgbjY6LNO8=; b=RJuCQ7+wZ12GjCWA5gFYKqdHMGtZw1m+MTvsUypMJkgak0gZ01y/c3Q5RoWcioD7T/blXD HaFu3cin1YJzTNCKqxXvUDdQvOzzoE49cl3fXwipdxNiucKCT3qP2j1Kmx0EkdQnsmAKt0 f99eHKG/XFpdjtZm7WWkjwLDDn9gXRkkClOA21KTvck2/XY2Xz/EinVnPXkW+212oaUfcR lIomBezK8/jWHksepBIi2b1BWh5lgocUOKPquwNj2Ms0U/UUnI3h1vBdDc76c9FeuW3Ou9 pz0CxaGsm7xxq1kemkhdNDfV/ZACnNvg9opnlHN68txcFvrzUTE1LPLXuJGYmA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=troyfigiel.com header.s=MBO0001 header.b=Bdt4vjxG; 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=1706219773; a=rsa-sha256; cv=none; b=pMXzmfQsuSQjCie8UR9smWhStVmq5XszBV7Pn/bzpxB1SEx3QpX3ys1GUhUHtCyo5pXsAw 46dvqIWIqrTM/9P33dnylXl+S/SyyeIOzgiXpQd0smdUg0m3g4dAN9d3QKQhWRMrQM76Je OJxp7KXRLoYj2Wc2CxoeOqck+TL+rG201SgRqdk8Pr9aAgVIGblX4AqMeXIzsZNkrSdagW oe0frCBpJUJ4kpmSPQ32zWfEogbreNRrkvZbTIbfPSnkINEBmSvsKuqH7ohXqaEJADtdqC nmHa8NW3cjECN5uUXppfoqRm5FUKloO7HnD8bUsjj9CPO382IUgWKuSimT2zYw== 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 BF4603F2E9 for ; Thu, 25 Jan 2024 22:56:13 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rT7hW-0001yy-Pr; Thu, 25 Jan 2024 16:55:58 -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 1rT7hU-0001yb-QZ for guix-patches@gnu.org; Thu, 25 Jan 2024 16:55: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 1rT7hU-000873-7X for guix-patches@gnu.org; Thu, 25 Jan 2024 16:55:56 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rT7ha-0002h1-8V for guix-patches@gnu.org; Thu, 25 Jan 2024 16:56:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68721] [PATCH 2/2] gnu: Add python-fastparquet. References: <87le8dgjyu.fsf@troyfigiel.com> In-Reply-To: <87le8dgjyu.fsf@troyfigiel.com> Resent-From: Troy Figiel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 25 Jan 2024 21:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68721 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68721@debbugs.gnu.org Received: via spool by 68721-submit@debbugs.gnu.org id=B68721.170621971610289 (code B ref 68721); Thu, 25 Jan 2024 21:56:02 +0000 Received: (at 68721) by debbugs.gnu.org; 25 Jan 2024 21:55:16 +0000 Received: from localhost ([127.0.0.1]:49445 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rT7gp-0002ft-HD for submit@debbugs.gnu.org; Thu, 25 Jan 2024 16:55:15 -0500 Received: from mout-p-201.mailbox.org ([80.241.56.171]:59598) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rT7gn-0002fd-8a for 68721@debbugs.gnu.org; Thu, 25 Jan 2024 16:55:14 -0500 Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (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-201.mailbox.org (Postfix) with ESMTPS id 4TLZPH0rM6z9sSt for <68721@debbugs.gnu.org>; Thu, 25 Jan 2024 22:54:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=troyfigiel.com; s=MBO0001; t=1706219699; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Zkg91YTs7YyxwTvavfPDivhn+hKr5tQguTgbjY6LNO8=; b=Bdt4vjxGk8eW+OJeGq04WzGlXK+gUCclJgKAli9kOuoO5bdqw0DpFHi8AC9vxpSq2j15Yk /isTismywMcByjyJy037NUJuFUpD9Ug8QCwbjpYlkwEIdfQPpsHkGEbdgXI2ehzCCywGUt WD6Lb4loTsiC/Iedh7xVYgYx6nzKquO8nyfEnDu0R21w4C1daouWNQ+ydtLk8KTurnXD9P n8GAFe8RHAG1J1lozGUmJnupAaoEta+3ni7nJ9mSgfXYwz6FM3T7Swmf4ka4e0BfWqU6KD aU6MQQDpIlnXqCJrcGTzbCo3WQCLJOh4ZUxWdZIG/C5XusR9NX+AUOeLi+3owA== From: Troy Figiel Date: Thu, 25 Jan 2024 21:45:20 +0100 Message-ID: <87il3hgjt9.fsf@troyfigiel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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.24 X-Migadu-Scanner: mx13.migadu.com X-Spam-Score: 2.24 X-Migadu-Queue-Id: BF4603F2E9 X-TUID: sEsdX+Qzw52T * gnu/packages/databases.scm (python-fastparquet): New variable. --- gnu/packages/databases.scm | 67 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index b56767d311..66f7f7d951 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -62,6 +62,7 @@ ;;; Copyright =C2=A9 2023 Felix Gruber ;;; Copyright =C2=A9 2023 Giacomo Leidi +;;; Copyright =C2=A9 2024 Troy Figiel ;;; ;;; This file is part of GNU Guix. ;;; @@ -142,6 +143,7 @@ (define-module (gnu packages databases) #:use-module (gnu packages python) #:use-module (gnu packages python-build) #:use-module (gnu packages python-check) + #:use-module (gnu packages python-compression) #:use-module (gnu packages python-crypto) #:use-module (gnu packages python-science) #:use-module (gnu packages python-web) @@ -4896,6 +4898,71 @@ (define-public python-pyarrow-0.16 other traditional Python scientific computing packages.") (license license:asl2.0))) =20 +(define-public python-fastparquet + (package + (name "python-fastparquet") + (version "2023.10.1") + (source + (origin + ;; Fastparquet uses setuptools-scm to find the current version. This + ;; only works when we use the PyPI tarball, which does not contain + ;; tests. Instead, we use the git-fetch method and add the version = back + ;; ourselves. + (method git-fetch) + (uri (git-reference + (url "https://github.com/dask/fastparquet") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0msc2n4sjbq3h5pq6l94rfx27v0aqrk5cxbpg3yssr74gwx26h4r")) + (modules '((guix build utils))) + (snippet '(substitute* "setup.py" + ;; Remove dependencies on git and setuptools-scm. + (("^.*\"git\", \"status\".*$") + "") + (("'setuptools-scm>1.5.4',") + "") + ;; Guix is only compatible with a single version of num= py + ;; at a time. We can safely remove this dependency. + (("'oldest-supported-numpy'") + ""))))) + (build-system pyproject-build-system) + (arguments + (list + #:phases #~(modify-phases %standard-phases + ;; Make sure to add back the missing version information + ;; the build phase. + (add-after 'unpack 'set-version + (lambda _ + (call-with-output-file "fastparquet/_version.py" + (lambda (port) + (format port "__version__ =3D ~a" + (string-append "\"" + #$version "\"")))))) + ;; Cython extensions need to be built for the check pha= se. + (add-before 'check 'build-cython-extensions + (lambda _ + (invoke "python" "setup.py" "build_ext" "--inplace"= )))))) + (propagated-inputs (list python-cramjam python-fsspec python-numpy + python-packaging python-pandas)) + (native-inputs (list python-cython python-pytest-runner)) + (home-page "https://github.com/dask/fastparquet") + (synopsis "Python implementation of the Parquet file format") + (description + "@code{fastparquet} is a Python implementation of the Parquet file +format. @code{fastparquet} is used implicitly by @code{dask}, @code{panda= s} +and @code{intake-parquet}. It supports the following compression algorith= ms: + +@itemize +@item Gzip +@item Snappy +@item Brotli +@item LZ4 +@item Zstd +@item LZO (optionally) +@end itemize") + (license license:asl2.0))) + (define-public python-crate (package (name "python-crate") --=20 2.42.0