[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/45: gnu: python-args: Patch reference to basestring.
From: |
guix-commits |
Subject: |
02/45: gnu: python-args: Patch reference to basestring. |
Date: |
Thu, 4 Aug 2022 06:07:06 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 18e00988176162ac736c873dc6cb06169b0aaa3b
Author: Tanguy Le Carrour <tanguy@bioneland.org>
AuthorDate: Thu Mar 10 18:28:08 2022 +0100
gnu: python-args: Patch reference to basestring.
Hi Maxime,
I **totally** forgot about this one! Seems like no one is using it.
`python2-args` also builds. But no package seems to depend on it anyway.
Regards,
Tanguy
* gnu/packages/python-xyz.scm (python-args)[source]: Use the latest version
from the git repository to get the test suite.
[home-page]: Update URL.
[native-inputs]: Add python-nose.
[arguments]: Replace reference to basestring with str. Invoke nosetests.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/python-xyz.scm | 45 ++++++++++++++++++++++++++++++---------------
1 file changed, 30 insertions(+), 15 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index cf1f009a7f..1be295b140 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -14056,21 +14056,36 @@ files for use with Python.")
(license license:bsd-2)))
(define-public python-args
- (package
- (name "python-args")
- (version "0.1.0")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "args" version))
- (sha256
- (base32
- "057qzi46h5dmxdqknsbrssn78lmqjlnm624iqdhrnpk26zcbi1d7"))))
- (build-system python-build-system)
- (home-page "https://github.com/kennethreitz/args")
- (synopsis "Command-line argument parser")
- (description
- "This library provides a Python module to parse command-line arguments.")
- (license license:bsd-3)))
+ (let ((commit "9460f1a35eb3055e9e4de1f0a6932e0883c72d65") (revision "0"))
+ (package
+ (name "python-args")
+ (version (git-version "0.1.0" revision commit))
+ (home-page "https://github.com/kennethreitz-archive/args")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1zfxpbp9vldqdrjmd0c6y3wisl35mx5v8zlyp3nhwpy1730wrc9j"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases (modify-phases %standard-phases
+ (add-after 'unpack 'patch-args.py
+ (lambda _
+ (substitute* "args.py"
+ (("basestring") "str"))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "nosetests" "-v")))))))
+ (native-inputs (list python-nose))
+ (synopsis "Command-line argument parser")
+ (description
+ "This library provides a Python module to parse command-line
arguments.")
+ (license license:bsd-3))))
(define-public python-clint
(package
- 34/45: gnu: Add ruby-citeproc., (continued)
- 34/45: gnu: Add ruby-citeproc., guix-commits, 2022/08/04
- 07/45: gnu: libomp-14: Reference llvm-14 version string., guix-commits, 2022/08/04
- 12/45: gnu: clang-toolchain-11: Use libomp-11., guix-commits, 2022/08/04
- 26/45: gnu: Add itex2mml., guix-commits, 2022/08/04
- 43/45: gnu: anystyle: Use GDBM by default., guix-commits, 2022/08/04
- 06/45: gnu: Add aoflagger., guix-commits, 2022/08/04
- 25/45: gnu: Add ruby-namae., guix-commits, 2022/08/04
- 13/45: gnu: Add libomp-10., guix-commits, 2022/08/04
- 37/45: gnu: Add ruby-anystyle-data., guix-commits, 2022/08/04
- 15/45: gnu: Add libomp-9., guix-commits, 2022/08/04
- 02/45: gnu: python-args: Patch reference to basestring.,
guix-commits <=
- 35/45: gnu: Add ruby-edtf., guix-commits, 2022/08/04
- 09/45: gnu: Add libomp-12., guix-commits, 2022/08/04
- 23/45: gnu: make-clang-toolchain: Require explicit libomp., guix-commits, 2022/08/04
- 10/45: gnu: clang-toolchain-12: Use libomp-12., guix-commits, 2022/08/04
- 36/45: gnu: Add ruby-gli., guix-commits, 2022/08/04
- 39/45: gnu: Add anystyle., guix-commits, 2022/08/04
- 18/45: gnu: clang-toolchain-8: Use libomp-8., guix-commits, 2022/08/04
- 33/45: gnu: Add ruby-unicode-scripts., guix-commits, 2022/08/04
- 29/45: gnu: Add ruby-link-header., guix-commits, 2022/08/04
- 20/45: gnu: clang-toolchain-7: Use libomp-7., guix-commits, 2022/08/04