about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEfraim Flashner2019-07-29 11:26:53 -0500
committerEfraim Flashner2019-07-29 11:27:20 -0500
commit86420abcd9fe59770c2667e84fd4f2de614c1efd (patch)
treea5f15312a9702dc38f55e0e74710e94247e0fdb1
parent18c78b202937a3239cdccdc8c612f7df5e98bb6a (diff)
downloadguix-bioinformatics-86420abcd9fe59770c2667e84fd4f2de614c1efd.tar.gz
gn: python-shellescape: Clean up package definition.
* gn/packages/python.scm (python-shellescape): Re-indent.
[source]: Use pypi uri.
[inputs]: Move python-setuptools ...
[native-inputs]: ... to here.
[license]: Use 'license' prefix.
-rw-r--r--gn/packages/python.scm41
1 files changed, 18 insertions, 23 deletions
diff --git a/gn/packages/python.scm b/gn/packages/python.scm
index 0e9a229..ee32a61 100644
--- a/gn/packages/python.scm
+++ b/gn/packages/python.scm
@@ -491,30 +491,25 @@ Python 3 support.")
   (package-with-python2 python-avro))
 
 (define-public python-shellescape ; guix ready
-(package
-  (name "python-shellescape")
-  (version "3.4.1")
-  (source
-    (origin
-      (method url-fetch)
-      (uri (string-append
-             "https://pypi.python.org/packages/source/s/shellescape/shellescape-"
-             version
-             ".tar.gz"))
-      (sha256
-        (base32
+  (package
+    (name "python-shellescape")
+    (version "3.4.1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "shellescape" version))
+        (sha256
+         (base32
           "0n5ky1b2vw2y0d4xl3qybyp2rk0gq5frjs8nr8ak6mgj2fyb4676"))))
-  (build-system python-build-system)
-  (inputs
-    `(("python-setuptools" ,python-setuptools)))
-  (home-page
-    "https://github.com/chrissimpkins/shellescape")
-  (synopsis
-    "Shell escape a string to safely use it as a token in a shell command (backport of Python shlex.quote for Python versions 2.x & < 3.3)")
-  (description
-    "Shell escape a string to safely use it as a token in a shell command (backport of Python shlex.quote for Python versions 2.x & < 3.3)")
-  (license expat))
-)
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-setuptools" ,python-setuptools)))
+    (home-page "https://github.com/chrissimpkins/shellescape")
+    (synopsis
+      "Shell escape a string to safely use it as a token in a shell command (backport of Python shlex.quote for Python versions 2.x & < 3.3)")
+    (description
+      "Shell escape a string to safely use it as a token in a shell command (backport of Python shlex.quote for Python versions 2.x & < 3.3)")
+    (license license:expat)))
 
 (define-public python2-shellescape
   (package-with-python2 python-shellescape))