From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 SKTgN7V142XjSwAAqHPOHw:P1 (envelope-from ) for ; Sat, 02 Mar 2024 19:53:42 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id SKTgN7V142XjSwAAqHPOHw (envelope-from ) for ; Sat, 02 Mar 2024 19:53:42 +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=zoC5THHO; 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=1709405621; 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=MOgfxb7Bi8sFlSoNNScVwsYbLZLLpcLbadEabvOzLcA=; b=Tm4IdgZJ0cGO/Ysxyr+MJEIPD9pnLd5G0dqRAX6Q2kexGlMyUwCscbPLCyuYo7uWaetrUG VBypFtxUu6KmvInbfAqsEx94GwSbuJDdKfPfzN9Z7zu7i/HfAX/y/EpdxVnCpSHH27wW1t I9djOZ5YUUxCRHqkNpusAE5ycar06HvKm29UPGW75dqA8f+fiosLkAys1d+QtqmtCgARoO j6xhYQldzR2zAFQ+4SK7kitoQaRYQK+jtykA5nkbF07FaDJzI6YbLuhNzT7xf6Np86stj5 bsdGMLD3OPRv97Lfa9VDq7NhV6sRSV1vO7rAX9vEDlAcVLGVRfWvJwszYBNHWw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=troyfigiel.com header.s=MBO0001 header.b=zoC5THHO; 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=1709405621; a=rsa-sha256; cv=none; b=nqPPY7mWhhcXvKN21npNVMdicRsmgTEyBo4MFpHSvzGLsMzmbxguhK4n/mRMUD+cOIatSa 8imCV+87nBmYCidMOvXdtJLJMsUFHEJU5jYu5KwITP975JoqBWSv4dHEjFsAn7NlCEBYcz DBQ2Cqt7epDzSt+iSphMK3JC0bDMOqCQQEWaDcTm7qF7vmVqc+C5OfvcWKr3Lh6QFimLxy fdtycQdmdP+fgJZMQmY1nbAMoM3HerMH/7rnuqKhUfj5IHtEKKs8Wf8MVaVZf/b95f77cu AatiMTYyHVJia08BPR7dRrLMkfe0mfOXuNlaYg6x+PbCr4NibC6n0OrbAHsDEA== 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 451934470A for ; Sat, 2 Mar 2024 19:53:41 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rgUUJ-0005cM-Eg; Sat, 02 Mar 2024 13:53:35 -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 1rgUUH-0005cC-PP for guix-patches@gnu.org; Sat, 02 Mar 2024 13:53:33 -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 1rgUUH-0003Jh-Hd for guix-patches@gnu.org; Sat, 02 Mar 2024 13:53:33 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rgUUk-0007BT-0w for guix-patches@gnu.org; Sat, 02 Mar 2024 13:54: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: Sat, 02 Mar 2024 18:54:01 +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.170940562127582 (code B ref 68721); Sat, 02 Mar 2024 18:54:01 +0000 Received: (at 68721) by debbugs.gnu.org; 2 Mar 2024 18:53:41 +0000 Received: from localhost ([127.0.0.1]:39375 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rgUUO-0007Ao-SF for submit@debbugs.gnu.org; Sat, 02 Mar 2024 13:53:41 -0500 Received: from mout-p-202.mailbox.org ([80.241.56.172]:48140) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rgUUK-0007AY-ER for 68721@debbugs.gnu.org; Sat, 02 Mar 2024 13:53:39 -0500 Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (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-202.mailbox.org (Postfix) with ESMTPS id 4TnDcC6TCYz9t6t for <68721@debbugs.gnu.org>; Sat, 2 Mar 2024 19:52:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=troyfigiel.com; s=MBO0001; t=1709405579; 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=MOgfxb7Bi8sFlSoNNScVwsYbLZLLpcLbadEabvOzLcA=; b=zoC5THHOYa1gFtm9g5kUiRvO9Jx8gq0NrPhPTDczvb3ywJDNKFNUWuvzbGw/dWEn592zKn ORB9/BXqvj6eofVzR7O2ZjvN78PUFtyfHnk6HxcUAdgJMFhKIAx09JGvYPlJlAYzqNdGIn a7Ae/s4q/sB5vM8AFaaF1DiURJXuKpZhmuPH1D4eTPV8AcLrTjKUYQhbJNjvlp5XsaUAdK OrVVadXcKYskPhoZaisNrvJm8CtIluBQJP94kQ1SzfM9N7FTDga1s8KWyTnHOZnRBidvcT Q1CADth1dMrA0vNHRDkf6/gEk7oX2U+00KxtdD7fXN/Dz5UTO1aIW+CQfUGKRQ== From: Troy Figiel Date: Sat, 2 Mar 2024 19:40:31 +0100 Message-ID: <87y1b0pit1.fsf@troyfigiel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4TnDcC6TCYz9t6t 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -5.37 X-Spam-Score: -5.37 X-Migadu-Queue-Id: 451934470A X-Migadu-Scanner: mx11.migadu.com X-TUID: HDgYEPWgCc62 * gnu/packages/databases.scm (python-fastparquet): New variable. --- gnu/packages/databases.scm | 68 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index db4fe0b447..5ec0234ef1 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. ;;; @@ -143,6 +144,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) @@ -4984,6 +4986,72 @@ (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 "2024.2.0") + (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 "0f32dj1xvd11l0siznqd33dpjlhg9siylcjcfkcdlqfcy45jfj3v")))) + (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 "\"")))))) + (add-after 'unpack 'relax-dependencies + (lambda _ + (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 numpy + ;; at a time. We can safely remove this dependenc= y. + (("'oldest-supported-numpy'") + "")))) + ;; 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