[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
58/166: gnu: Add python-tempora.
From: |
guix-commits |
Subject: |
58/166: gnu: Add python-tempora. |
Date: |
Tue, 19 Apr 2022 09:12:19 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython+polyglossia
in repository guix.
commit 5493e0a4edd6fda6dfe0b242d636da182aad108d
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Tue Apr 5 15:02:08 2022 -0400
gnu: Add python-tempora.
* gnu/packages/python-xyz.scm (python-tempora): New variable.
---
gnu/packages/python-xyz.scm | 54 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 0f6731efe7..179f5a6c1e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -21445,6 +21445,60 @@ particularly convenient for use in tests.")
(define-public python2-tempdir
(package-with-python2 python-tempdir))
+(define-public python-tempora
+ (package
+ (name "python-tempora")
+ (version "5.0.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "tempora" version))
+ (sha256
+ (base32 "09wirlk5vmxlhl9rnxp7g5qz2nsd6b0gnzk5fczbz0s8lsbz386b"))))
+ (build-system python-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; XXX: PEP 517 manual build copied from python-isort.
+ (replace 'build
+ (lambda _
+ (setenv "SOURCE_DATE_EPOCH" "315532800")
+ (invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
+ (replace 'install
+ (lambda _
+ (let ((whl (car (find-files "dist" "\\.whl$"))))
+ (invoke "pip" "--no-cache-dir" "--no-input"
+ "install" "--no-deps" "--prefix" #$output whl))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ ;; Do not test the myproject.toml build as it tries to pull
+ ;; dependencies from the Internet.
+ (invoke "pytest" "-k" "not project")))))))
+ (native-inputs
+ (list python-pypa-build
+ python-freezegun
+ python-pytest
+ python-pytest-black
+ python-pytest-checkdocs
+ python-pytest-cov
+ python-pytest-enabler
+ python-pytest-flake8
+ python-pytest-freezegun
+ python-pytest-mypy
+ python-setuptools-scm
+ python-types-freezegun
+ python-types-pytz))
+ (propagated-inputs (list python-jaraco-functools python-pytz))
+ (home-page "https://github.com/jaraco/tempora")
+ (synopsis "Python date and time objects and routines")
+ (description "The @code{tempora} Python library contains miscellaneous
+date and time related utilities and constants, routines for measuring,
+profiling, and getting datetime-aware @acronym{UTC, Coordinated Universal
+Time} values as well as an event scheduler.")
+ (license license:expat)))
+
(define-public python-activepapers
(package
(name "python-activepapers")
- 143/166: gnu: python-fakeredis: Update to 1.7.1., (continued)
- 143/166: gnu: python-fakeredis: Update to 1.7.1., guix-commits, 2022/04/19
- 151/166: gnu: python-numba: Update to 0.55.1., guix-commits, 2022/04/19
- 153/166: gnu: python-pandas: Update to 1.4.2., guix-commits, 2022/04/19
- 150/166: gnu: python-llvmlite: Update to 0.38.0., guix-commits, 2022/04/19
- 161/166: gnu: python-jupyter-protocol: Update to 0.2.0., guix-commits, 2022/04/19
- 163/166: gnu: xeus: Update to 2.4.1., guix-commits, 2022/04/19
- 165/166: gnu: python-cmarkgfm: Update to 0.8.0., guix-commits, 2022/04/19
- 166/166: gnu: python-readme-renderer: Update to 34.0., guix-commits, 2022/04/19
- 07/166: gnu: python-traitlets: Update to 5.1.1., guix-commits, 2022/04/19
- 27/166: gnu: Add python-fontpens-bootstrap., guix-commits, 2022/04/19
- 58/166: gnu: Add python-tempora.,
guix-commits <=
- 71/166: gnu: python-pytest-cov: Update to 3.0.0., guix-commits, 2022/04/19
- 69/166: gnu: python-pathpy: Deprecate by python-path., guix-commits, 2022/04/19
- 91/166: gnu: python-flask: Update to 2.1.1., guix-commits, 2022/04/19
- 24/166: gnu: Add python-unicodedata2., guix-commits, 2022/04/19
- 26/166: gnu: Add python-mutatormath., guix-commits, 2022/04/19
- 66/166: gnu: Add python-xdoctest., guix-commits, 2022/04/19
- 68/166: gnu: python-setuptools: Update to 62.0.0., guix-commits, 2022/04/19
- 20/166: gnu: Add opentype-sanitizer., guix-commits, 2022/04/19
- 81/166: gnu: Add python-skia-pathops., guix-commits, 2022/04/19
- 47/166: gnu: python-importlib-metadata: Update to 4.11.3., guix-commits, 2022/04/19