[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/08: gnu: Add python-traitlets.
From: |
Ricardo Wurmus |
Subject: |
08/08: gnu: Add python-traitlets. |
Date: |
Mon, 12 Oct 2015 14:08:39 +0000 |
rekado pushed a commit to branch master
in repository guix.
commit 2b10eb489c54216a1470e1386e0bf1d11d7edeba
Author: Ricardo Wurmus <address@hidden>
Date: Wed Sep 23 13:51:50 2015 +0200
gnu: Add python-traitlets.
* gnu/packages/python.scm (python-traitlets, python2-traitlets): New
variables.
---
gnu/packages/python.scm | 36 ++++++++++++++++++++++++++++++++++++
1 files changed, 36 insertions(+), 0 deletions(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 95de0e3..d15589c 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -3933,6 +3933,42 @@ standard library.")
(define-public python2-ipython-genutils
(package-with-python2 python-ipython-genutils))
+(define-public python-traitlets
+ (package
+ (name "python-traitlets")
+ (version "4.0.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://pypi.python.org/packages/source/t/"
+ "traitlets/traitlets-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0fr3w2xwb46c591dp7zw02bgf4d21mjy9g6rhwc9bwd4ji50n50b"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check (lambda _ (zero? (system* "nosetests")))))))
+ (propagated-inputs
+ `(("python-ipython-genutils" ,python-ipython-genutils)
+ ("python-decorator" ,python-decorator)))
+ (native-inputs
+ `(("python-nose" ,python-nose)))
+ (home-page "http://ipython.org")
+ (synopsis "Configuration system for Python applications")
+ (description
+ "Traitlets is a framework that lets Python classes have attributes with
+type checking, dynamically calculated default values, and ‘on change’
+callbacks. The package also includes a mechanism to use traitlets for
+configuration, loading values from files or from command line arguments. This
+is a distinct layer on top of traitlets, so you can use traitlets in your code
+without using the configuration machinery.")
+ (license bsd-3)))
+
+(define-public python2-traitlets
+ (package-with-python2 python-traitlets))
+
(define-public python-ipython
(package
(name "python-ipython")
- branch master updated (db94f8c -> 2b10eb4), Ricardo Wurmus, 2015/10/15
- 07/08: gnu: Add python-ipython-genutils., Ricardo Wurmus, 2015/10/12
- 05/08: gnu: Add python-pickleshare., Ricardo Wurmus, 2015/10/12
- 01/08: gnu: Add python-pexpect., Ricardo Wurmus, 2015/10/12
- 08/08: gnu: Add python-traitlets.,
Ricardo Wurmus <=
- 02/08: gnu: Add python-setuptools-scm., Ricardo Wurmus, 2015/10/12
- 04/08: gnu: Add python-pathpy., Ricardo Wurmus, 2015/10/12
- 03/08: gnu: Add python-pytest-runner., Ricardo Wurmus, 2015/10/12
- 06/08: gnu: Add python-simplegeneric., Ricardo Wurmus, 2015/10/12