[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
15/23: gnu: Add python-configobj.
From: |
David Thompson |
Subject: |
15/23: gnu: Add python-configobj. |
Date: |
Fri, 04 Dec 2015 18:19:53 +0000 |
davexunit pushed a commit to branch wip-lets-encrypt
in repository guix.
commit c9db89f05924fa5eb6167a1a770647b80eb3707b
Author: Leo Famulari <address@hidden>
Date: Sun Nov 8 15:38:55 2015 -0500
gnu: Add python-configobj.
* gnu/packages/python.scm (python-configobj, python2-configobj): New
variables.
* gnu/packages/patches/python-configobj-setuptools.patch: New file.
* gnu-system.am (dist_patch_DATA): Add it.
---
gnu-system.am | 1 +
.../patches/python-configobj-setuptools.patch | 30 ++++++++++++++++++++
gnu/packages/python.scm | 30 ++++++++++++++++++++
3 files changed, 61 insertions(+), 0 deletions(-)
diff --git a/gnu-system.am b/gnu-system.am
index ee7fcc1..db7339a 100644
--- a/gnu-system.am
+++ b/gnu-system.am
@@ -679,6 +679,7 @@ dist_patch_DATA =
\
gnu/packages/patches/python-disable-ssl-test.patch \
gnu/packages/patches/python-fix-tests.patch \
gnu/packages/patches/python2-rdflib-drop-sparqlwrapper.patch \
+ gnu/packages/patches/python-configobj-setuptools.patch \
gnu/packages/patches/python2-pygobject-2-gi-info-type-error-domain.patch \
gnu/packages/patches/qemu-CVE-2015-6855.patch \
gnu/packages/patches/qt4-ldflags.patch \
diff --git a/gnu/packages/patches/python-configobj-setuptools.patch
b/gnu/packages/patches/python-configobj-setuptools.patch
new file mode 100644
index 0000000..3f207ff
--- /dev/null
+++ b/gnu/packages/patches/python-configobj-setuptools.patch
@@ -0,0 +1,30 @@
+From 16fbc38f13e435b4e3e1a37d706e64e05bad4691 Mon Sep 17 00:00:00 2001
+From: Leo Famulari <address@hidden>
+Date: Tue, 10 Nov 2015 23:09:24 -0500
+Subject: [PATCH] patch build to use setuptools
+
+---
+ setup.py | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index c6d57a6..27bf260 100644
+--- a/setup.py
++++ b/setup.py
+@@ -12,7 +12,12 @@
+ # http://opensource.org/licenses/BSD-3-Clause
+ import os
+ import sys
+-from distutils.core import setup
++
++try:
++ from setuptools import setup
++except ImportError:
++ from distutils.core import setup
++
+ # a simple import wouldn't work if we moved towards a package with __init__
+ from _version import __version__
+
+--
+2.6.2
+
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 600cc7a..ef879e9 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -6397,3 +6397,33 @@ addon modules.")
(define-public python2-werkzeug
(package-with-python2 python-werkzeug))
+
+(define-public python-configobj
+ (package
+ (name "python-configobj")
+ (version "5.0.6")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://pypi.python.org/packages/source/c/configobj/"
+ "configobj-" version ".tar.gz"))
+ (sha256
+ (base32
+ "00h9rcmws03xvdlfni11yb60bz3kxfvsj6dg6nrpzj71f03nbxd2"))
+ ;; Patch setup.py so it looks for python-setuptools, which is
+ ;; required to parse the keyword 'install_requires' in setup.py.
+ (patches (list (search-patch
"python-configobj-setuptools.patch")))))
+ (build-system python-build-system)
+ (native-inputs
+ `(("python-setuptools" ,python-setuptools)
+ ("python-six" ,python-six)))
+ (synopsis "Config file reading, writing and validation")
+ (description "ConfigObj is a simple but powerful config file reader and
+writer: an ini file round tripper. Its main feature is that it is very easy to
+use, with a straightforward programmer’s interface and a simple syntax for
+config files.")
+ (home-page "https://github.com/DiffSK/configobj")
+ (license bsd-3)))
+
+(define-public python2-configobj
+ (package-with-python2 python-configobj))
- 04/23: gnu: Add python-zope-testing., (continued)
- 04/23: gnu: Add python-zope-testing., David Thompson, 2015/12/04
- 06/23: gnu: Add python-zope-i18nmessageid., David Thompson, 2015/12/04
- 07/23: gnu: Add python-zope-schema., David Thompson, 2015/12/04
- 08/23: gnu: Add python-zope-configuration., David Thompson, 2015/12/04
- 09/23: gnu: Add python-zope-proxy., David Thompson, 2015/12/04
- 10/23: gnu: Add python-zope-location., David Thompson, 2015/12/04
- 11/23: gnu: Add python-zope-security., David Thompson, 2015/12/04
- 05/23: gnu: Add python-zope-testrunner., David Thompson, 2015/12/04
- 12/23: gnu: Add python-zope-component., David Thompson, 2015/12/04
- 16/23: gnu: Add dialog., David Thompson, 2015/12/04
- 15/23: gnu: Add python-configobj.,
David Thompson <=
- 13/23: gnu: Add python-pyrfc3339., David Thompson, 2015/12/04
- 19/23: gnu: Add python-ndg-httpsclient., David Thompson, 2015/12/04
- 14/23: gnu: Add python-werkzeug., David Thompson, 2015/12/04
- 17/23: gnu: Add python2-pythondialog., David Thompson, 2015/12/04
- 18/23: gnu: Add python-configargparse., David Thompson, 2015/12/04
- 21/23: gnu: Add python2-parsedatetime., David Thompson, 2015/12/04
- 22/23: gnu: Add acme., David Thompson, 2015/12/04
- 23/23: gnu: Add lets-encrypt., David Thompson, 2015/12/04
- 20/23: gnu: python-parsedatetime: Update to 1.5., David Thompson, 2015/12/04