[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#29018] [PATCH 1/3] gnu: python-configargparse: Update to 0.12.0.
From: |
Kyle Meyer |
Subject: |
[bug#29018] [PATCH 1/3] gnu: python-configargparse: Update to 0.12.0. |
Date: |
Thu, 26 Oct 2017 17:02:28 -0400 |
* gnu/packages/python.scm (python-configargparse, python2-configargparse):
Update to 0.12.0.
[arguments]: Enable tests.
[native-inputs]: Add python-pyyaml, which is an optional dependency but
required to run the tests.
---
gnu/packages/python.scm | 24 +++++++++++++++++-------
1 file changed, 17 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index f003cb2ef..3f92da44d 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -15,7 +15,7 @@
;;; Copyright © 2015, 2017 Ben Woodcroft <address@hidden>
;;; Copyright © 2015, 2016 Erik Edrosa <address@hidden>
;;; Copyright © 2015, 2016, 2017 Efraim Flashner <address@hidden>
-;;; Copyright © 2015 Kyle Meyer <address@hidden>
+;;; Copyright © 2015, 2017 Kyle Meyer <address@hidden>
;;; Copyright © 2015, 2016 Chris Marusich <address@hidden>
;;; Copyright © 2016 Danny Milosavljevic <address@hidden>
;;; Copyright © 2016 Lukas Gradl <address@hidden>
@@ -9279,20 +9279,30 @@ config files.")
(define-public python-configargparse
(package
(name "python-configargparse")
- (version "0.10.0")
+ (version "0.12.0")
(source (origin
(method url-fetch)
(uri (string-append
- "https://pypi.python.org/packages/source/C/ConfigArgParse/"
+ "https://pypi.io/packages/source/C/ConfigArgParse/"
"ConfigArgParse-" version ".tar.gz"))
(sha256
(base32
- "19wh919gbdbzxzpagg52q3lm62yicm95ddlcx77dyjc1slyshl1v"))))
+ "0fgkiqh6r3rbkdq3k8c48m85g52k96686rw3a6jg4lcncrkpvk98"))))
(build-system python-build-system)
+ (native-inputs
+ `(("python-pyyaml" ,python-pyyaml)))
(arguments
- ;; FIXME: Bug in test suite filed upstream:
- ;; https://github.com/bw2/ConfigArgParse/issues/32
- '(#:tests? #f))
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ ;; Bypass setuptools-shim because one test relies on "setup.py"
+ ;; being the first argument passed to the python call.
+ ;;
+ ;; NOTE: Many tests do not run because they rely on Python's
+ ;; built-in test.test_argparse, but we remove the unit tests from
+ ;; our Python installation.
+ (zero? (system* "python" "setup.py" "test")))))))
(synopsis "Replacement for argparse")
(description "A drop-in replacement for argparse that allows options to
also
be set via config files and/or environment variables.")
--
2.14.3