aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
author宋文武 <iyzsong@gmail.com>2015-08-22 11:32:30 +0800
committer宋文武 <iyzsong@gmail.com>2015-09-06 21:52:21 +0800
commitd582eaacec4bd55e9edfd21ad69cd232a157cb31 (patch)
treee7d83c769fb45aefc9c8e887e092cadb424d77ac /gnu/packages
parent030fa12ef2f94e0ae83c62de520aec409f42c114 (diff)
downloadguix-d582eaacec4bd55e9edfd21ad69cd232a157cb31.tar
guix-d582eaacec4bd55e9edfd21ad69cd232a157cb31.tar.gz
gnu: Add python-fonttools.
* gnu/packages/python.scm (python-fonttools, python2-fonttools): New variables.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/python.scm31
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index b588dd649a..aed8165eee 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -4627,3 +4627,34 @@ term.js Javascript terminal emulator library.")
,python2-backport-ssl-match-hostname)
,@(alist-delete "python-tornado"
(package-propagated-inputs terminado)))))))
+
+(define-public python-fonttools
+ (package
+ (name "python-fonttools")
+ (version "2.5")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://pypi.python.org/packages/source/F/FontTools/"
+ "fonttools-" version ".tar.gz"))
+ (sha256
+ (base32
+ "08ay3x4ijarwhl60gqx2i9jzq6pxs20p4snc2d1q5jagh4rn39lb"))))
+ (build-system python-build-system)
+ (arguments '(#:test-target "check"))
+ (propagated-inputs
+ ;; XXX: module not found if setuptools is not available.
+ `(("python-setuptools" ,python-setuptools)))
+ (home-page "http://github.com/behdad/fonttools")
+ (synopsis "Tools to manipulate font files")
+ (description
+ "FontTools/TTX is a library to manipulate font files from Python. It
+supports reading and writinfg of TrueType/OpenType fonts, reading and writing
+of AFM files, reading (and partially writing) of PS Type 1 fonts. The package
+also contains a tool called “TTX” which converts TrueType/OpenType fonts to and
+from an XML-based format.")
+ (license (non-copyleft "file://LICENSE.txt"
+ "See LICENSE.txt in the distribution."))))
+
+(define-public python2-fonttools
+ (package-with-python2 python-fonttools))