summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Famulari <leo@famulari.name>2016-08-02 16:16:45 -0400
committerLeo Famulari <leo@famulari.name>2016-08-06 22:55:36 -0400
commit1ae44b802b370b0a87436332196cab3d528393da (patch)
treec65e675351fe76b2630df24eddcb2449774eb344
parente87c7ec2de815f05d7a84e2792e2da700bb26a38 (diff)
downloadpatches-1ae44b802b370b0a87436332196cab3d528393da.tar
patches-1ae44b802b370b0a87436332196cab3d528393da.tar.gz
gnu: Add python-pythondialog.
* gnu/packages/python.scm (python-pythondialog): New variable. (python2-pythondialog): Inherit from PYTHON-PYTHONDIALOG. Co-authored-by: Vincent Legoll <vincent.legoll@idgrilles.fr>
-rw-r--r--gnu/packages/python.scm24
1 files changed, 18 insertions, 6 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 5fdf68e4a0..6ff1c5c9b2 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -6680,17 +6680,17 @@ facilities for defining, registering and looking up components.")
(define-public python2-zope-component
(package-with-python2 python-zope-component))
-(define-public python2-pythondialog
+(define-public python-pythondialog
(package
- (name "python2-pythondialog")
+ (name "python-pythondialog")
(version "3.4.0")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "python2-pythondialog" version))
+ (uri (pypi-uri "pythondialog" version))
(sha256
(base32
- "0d8k7lxk50imdyx85lv8j98i4c93a71iwpapnl1506rpkbm9qvd9"))))
+ "1728ghsran47jczn9bhlnkvk5bvqmmbihabgif5h705b84r1272c"))))
(build-system python-build-system)
(arguments
`(#:phases
@@ -6704,7 +6704,6 @@ facilities for defining, registering and looking up components.")
(("os.getenv\\(\"PATH\", \":/bin:/usr/bin\"\\)")
(string-append "os.getenv(\"PATH\") + \":" dialog "/bin\"")))
#t))))
- #:python ,python-2
#:tests? #f)) ; no test suite
(propagated-inputs
`(("dialog" ,dialog)))
@@ -6713,7 +6712,20 @@ facilities for defining, registering and looking up components.")
(description "A Python wrapper for the dialog utility. Its purpose is to
provide an easy to use, pythonic and comprehensive Python interface to dialog.
This allows one to make simple text-mode user interfaces on Unix-like systems")
- (license lgpl2.1)))
+ (license lgpl2.1)
+ (properties `((python2-variant . ,(delay python2-pythondialog))))))
+
+(define-public python2-pythondialog
+ (let ((base (package-with-python2 (strip-python2-variant python-pythondialog))))
+ (package
+ (inherit base)
+ (version (package-version python-pythondialog))
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "python2-pythondialog" version))
+ (sha256
+ (base32
+ "0d8k7lxk50imdyx85lv8j98i4c93a71iwpapnl1506rpkbm9qvd9")))))))
(define-public python-pyrfc3339
(package