[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/08: gnu: Add python-entrypoints.
From: |
Ricardo Wurmus |
Subject: |
01/08: gnu: Add python-entrypoints. |
Date: |
Fri, 4 Nov 2016 20:23:55 +0000 (UTC) |
rekado pushed a commit to branch master
in repository guix.
commit 60590a3ae8952ff0b5c77a722981aef514e3de66
Author: Ricardo Wurmus <address@hidden>
Date: Tue Nov 1 13:20:39 2016 +0100
gnu: Add python-entrypoints.
* gnu/packages/python.scm (python-entrypoints, python2-entrypoints): New
variables.
---
gnu/packages/python.scm | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 8987450..9aa3e49 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -6719,6 +6719,46 @@ Jupyter Notebook format and Python APIs for working with
notebooks.")
(define-public python2-bleach
(package-with-python2 python-bleach))
+(define-public python-entrypoints
+ (package
+ (name "python-entrypoints")
+ (version "0.2.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/takluyver/entrypoints/archive/"
+ version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0azqlkh3j0za080lsf5crnhaxx3c93k9dpv5ihkhf5cppgw5sjz5"))))
+ (build-system python-build-system)
+ ;; The package does not come with a setup.py file, so we have to generate
+ ;; one ourselves.
+ (arguments
+ `(#:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'create-setup.py
+ (lambda _
+ (call-with-output-file "setup.py"
+ (lambda (port)
+ (format port "\
+from setuptools import setup
+setup(name='entrypoints', version='~a', py_modules=['entrypoints'])
+" ,version))))))))
+ (home-page "https://github.com/takluyver/entrypoints")
+ (synopsis "Discover and load entry points from installed Python packages")
+ (description "Entry points are a way for Python packages to advertise
+objects with some common interface. The most common examples are
address@hidden entry points, which define shell commands by
+identifying a Python function to run. The @code{entrypoints} module contains
+functions to find and load entry points.")
+ (license license:expat)))
+
+(define-public python2-entrypoints
+ (package-with-python2 python-entrypoints))
+
(define-public python-chardet
(package
(name "python-chardet")
- branch master updated (0872283 -> c27ae82), Ricardo Wurmus, 2016/11/04
- 01/08: gnu: Add python-entrypoints.,
Ricardo Wurmus <=
- 08/08: gnu: Add jupyter., Ricardo Wurmus, 2016/11/04
- 02/08: gnu: Add python-nbconvert., Ricardo Wurmus, 2016/11/04
- 04/08: gnu: Add python-widgetsnbextension., Ricardo Wurmus, 2016/11/04
- 03/08: gnu: Add python-notebook., Ricardo Wurmus, 2016/11/04
- 05/08: gnu: Add python-ipywidgets., Ricardo Wurmus, 2016/11/04
- 06/08: gnu: Add python-jupyter-console., Ricardo Wurmus, 2016/11/04
- 07/08: gnu: python-ipython: Update to 4.0.0., Ricardo Wurmus, 2016/11/04