[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
23/29: gnu: python-testpath: Update to 0.4.4.
From: |
guix-commits |
Subject: |
23/29: gnu: python-testpath: Update to 0.4.4. |
Date: |
Tue, 13 Apr 2021 07:51:54 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit 5c89e2ac6f337c4ca5af2091345d2927f6224116
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Tue Apr 13 12:33:50 2021 +0200
gnu: python-testpath: Update to 0.4.4.
* gnu/packages/check.scm (python-testpath): Update to 0.4.4.
[arguments]: Build the package as intended with flit.
[native-inputs]: Add python-flit.
---
gnu/packages/check.scm | 34 ++++++++++++++++++++--------------
1 file changed, 20 insertions(+), 14 deletions(-)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 025e6df..2ad4de5 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -24,7 +24,7 @@
;;; Copyright © 2017, 2019 Mathieu Othacehe <m.othacehe@gmail.com>
;;; Copyright © 2017, 2019 Kei Kebreau <kkebreau@posteo.net>
;;; Copyright © 2017 Nikita <nikita@n0.is>
-;;; Copyright © 2015, 2017, 2018, 2020 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2015, 2017, 2018, 2020, 2021 Ricardo Wurmus
<rekado@elephly.net>
;;; Copyright © 2016, 2017, 2018, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2017, 2018, 2020 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
@@ -1769,7 +1769,7 @@ C/C++, R, and more, and uploads it to the
@code{codecov.io} service.")
(define-public python-testpath
(package
(name "python-testpath")
- (version "0.2")
+ (version "0.4.4")
(source
(origin
(method git-fetch)
@@ -1779,7 +1779,7 @@ C/C++, R, and more, and uploads it to the
@code{codecov.io} service.")
(file-name (git-file-name name version))
(sha256
(base32
- "0r4iiizjql6ny1ln7ciw7rrbjadz1s9zrf2hl0xkgnh3ypd8936f"))))
+ "1fwv4d3p54xx1x942s104irr35lszvv6jnr4nn1scsfvc0m1qmbk"))))
(build-system python-build-system)
(arguments
`(#:tests? #f ; this package does not even have a setup.py
@@ -1788,19 +1788,25 @@ C/C++, R, and more, and uploads it to the
@code{codecov.io} service.")
(srfi srfi-1))
#:phases
(modify-phases %standard-phases
- (delete 'install)
(replace 'build
+ (lambda _
+ ;; A ZIP archive should be generated, but it fails with "ZIP does
+ ;; not support timestamps before 1980". Luckily,
+ ;; SOURCE_DATE_EPOCH is respected, which we set to some time in
+ ;; 1980.
+ (setenv "SOURCE_DATE_EPOCH" "315532800")
+ (invoke "flit" "build")))
+ (replace 'install
(lambda* (#:key inputs outputs #:allow-other-keys)
- (let* ((version (last
- (string-split (assoc-ref inputs "python") #\-)))
- (x.y (string-join (take (string-split version #\.) 2)
- "."))
- (dir (string-append
- (assoc-ref outputs "out")
- "/lib/python" x.y "/site-packages/testpath")))
- (mkdir-p dir)
- (copy-recursively "testpath" dir))
- #t)))))
+ (add-installed-pythonpath inputs outputs)
+ (let ((out (assoc-ref outputs "out")))
+ (for-each (lambda (wheel)
+ (format #true wheel)
+ (invoke "python" "-m" "pip" "install"
+ wheel (string-append "--prefix=" out)))
+ (find-files "dist" "\\.whl$"))))))))
+ (native-inputs
+ `(("python-flit" ,python-flit)))
(home-page "https://github.com/takluyver/testpath")
(synopsis "Test utilities for code working with files and commands")
(description
- 02/29: gnu: python-jupyter-core: Update to 4.7.1., (continued)
- 02/29: gnu: python-jupyter-core: Update to 4.7.1., guix-commits, 2021/04/13
- 01/29: gnu: python-terminado: Update to 0.9.4., guix-commits, 2021/04/13
- 13/29: gnu: Remove python2-matplotlib-documentation., guix-commits, 2021/04/13
- 14/29: gnu: Remove python2-ipyparallel., guix-commits, 2021/04/13
- 17/29: gnu: Remove python2-ipykernel., guix-commits, 2021/04/13
- 05/29: gnu: python-widgetsnbextension: Add missing inputs., guix-commits, 2021/04/13
- 08/29: gnu: Add python-nest-asyncio., guix-commits, 2021/04/13
- 11/29: gnu: python-nbconvert: Update to 6.0.7., guix-commits, 2021/04/13
- 10/29: gnu: Add python-nbclient., guix-commits, 2021/04/13
- 19/29: gnu: Add python-pygments-github-lexers., guix-commits, 2021/04/13
- 23/29: gnu: python-testpath: Update to 0.4.4.,
guix-commits <=
- 03/29: gnu: python-jupyter-client: Update to 6.1.12., guix-commits, 2021/04/13
- 21/29: gnu: Add python-sphinxcontrib-github-alt., guix-commits, 2021/04/13
- 24/29: gnu: Add python-deprecation., guix-commits, 2021/04/13
- 07/29: gnu: python-notebook: Update inputs., guix-commits, 2021/04/13
- 20/29: gnu: Add python-requests-unixsocket., guix-commits, 2021/04/13
- 26/29: gnu: Add python-jupyterlab-widgets., guix-commits, 2021/04/13
- 09/29: gnu: Add python-jupyterlab-pygments., guix-commits, 2021/04/13
- 12/29: gnu: python-nbformat: Update to 5.1.3., guix-commits, 2021/04/13
- 22/29: gnu: python-flit: Update to 3.2.0., guix-commits, 2021/04/13
- 06/29: gnu: python-notebook: Update to 6.3.0., guix-commits, 2021/04/13