[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/08: gnu: Add python-pandas-stubs.
From: |
guix-commits |
Subject: |
05/08: gnu: Add python-pandas-stubs. |
Date: |
Wed, 17 Jan 2024 05:19:48 -0500 (EST) |
mothacehe pushed a commit to branch master
in repository guix.
commit 23cb6187f6ed6605c84753fd0e0783f812b69fc7
Author: Troy Figiel <troy@troyfigiel.com>
AuthorDate: Thu Jan 11 21:58:28 2024 +0100
gnu: Add python-pandas-stubs.
* gnu/packages/python-science.scm (python-pandas-stubs): 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 f5baea60b5..8e492bbaa5 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -575,6 +575,65 @@ and intuitive. It aims to be the fundamental high-level
building block for
doing practical, real world data analysis in Python.")
(license license:bsd-3)))
+(define-public python-pandas-stubs
+ (package
+ (name "python-pandas-stubs")
+ ;; The versioning follows that of Pandas and uses the date of the
+ ;; python-pandas-stubs release. This is the latest version of
+ ;; python-pandas-stubs for python-pandas 1.4.4.
+ (version "1.4.4.220919")
+ (source
+ (origin
+ ;; No tests in the PyPI tarball.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/pandas-dev/pandas-stubs")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "14fhj1y71akwl41ws7cpazsbq5b8wf4rwaydqq2h39q7gylpcp99"))))
+ (build-system pyproject-build-system)
+ (arguments
+ '(#:phases (modify-phases %standard-phases
+ (add-before 'check 'prepare-x
+ (lambda _
+ (system "Xvfb &")
+ (setenv "DISPLAY" ":0")
+ ;; xsel needs to write a log file.
+ (setenv "HOME"
+ (getcwd)))))))
+ (propagated-inputs (list python-types-pytz))
+ ;; Add python-fastparquet to native inputs once it has been packaged. Its
+ ;; tests will be skipped for now.
+ (native-inputs (list python-lxml
+ python-matplotlib
+ python-pandas
+ python-poetry-core
+ python-pyarrow
+ python-pyreadstat
+ python-pytest
+ python-scipy
+ python-sqlalchemy
+ python-tables
+ python-tabulate
+ python-xarray
+ ;; Needed to test clipboard support.
+ which
+ xclip
+ xorg-server-for-tests
+ xsel))
+ (home-page "https://pandas.pydata.org")
+ (synopsis "Type annotations for pandas")
+ (description
+ "This package contains public type stubs for @code{python-pandas},
+following the convention of providing stubs in a separate package, as
+specified in @acronym{PEP, Python Enhancement Proposal} 561. The stubs cover
+the most typical use cases of @code{python-pandas}. In general, these stubs
+are narrower than what is possibly allowed by @code{python-pandas}, but follow
+a convention of suggesting best recommended practices for using
+@code{python-pandas}.")
+ (license license:bsd-3)))
+
(define-public python-pythran
(package
(name "python-pythran")
- branch master updated (299ce524c9 -> b3e0a973bc), guix-commits, 2024/01/17
- 01/08: image: Consider grub-efi-removable-bootloader to be EFI bootloader., guix-commits, 2024/01/17
- 02/08: gnu: Add python-pdf2image., guix-commits, 2024/01/17
- 04/08: gnu: Add python-typeguard-4., guix-commits, 2024/01/17
- 05/08: gnu: Add python-pandas-stubs.,
guix-commits <=
- 06/08: gnu: Add python-pandera., guix-commits, 2024/01/17
- 03/08: gnu: Add python-concurrent-log-handler., guix-commits, 2024/01/17
- 08/08: gnu: powertop: Correct package description., guix-commits, 2024/01/17
- 07/08: gnu: Add tgif., guix-commits, 2024/01/17