summaryrefslogtreecommitdiff
path: root/net/py-lexicon
diff options
context:
space:
mode:
authorfhajny <fhajny@pkgsrc.org>2018-01-23 10:54:20 +0000
committerfhajny <fhajny@pkgsrc.org>2018-01-23 10:54:20 +0000
commit756fec74f8ab5da12db8c744b2c78978869a7bae (patch)
tree08bf205c48f9c11a60fc285407b906a2b9dedcad /net/py-lexicon
parent79f1f9e45463511d7b15b302aa0a788980468a7b (diff)
downloadpkgsrc-756fec74f8ab5da12db8c744b2c78978869a7bae.tar.gz
Update net/py-lexicon to 2.1.17.
- Add support for Namecheap.
Diffstat (limited to 'net/py-lexicon')
-rw-r--r--net/py-lexicon/MESSAGE11
-rw-r--r--net/py-lexicon/Makefile6
-rw-r--r--net/py-lexicon/PLIST7
-rw-r--r--net/py-lexicon/distinfo12
-rw-r--r--net/py-lexicon/patches/patch-lexicon_providers_namecheap.py19
-rw-r--r--net/py-lexicon/patches/patch-setup.py23
6 files changed, 69 insertions, 9 deletions
diff --git a/net/py-lexicon/MESSAGE b/net/py-lexicon/MESSAGE
new file mode 100644
index 00000000000..67e3a80355d
--- /dev/null
+++ b/net/py-lexicon/MESSAGE
@@ -0,0 +1,11 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2018/01/23 10:54:20 fhajny Exp $
+
+Optional support for the following DNS providers can be enabled
+by installing extra packages:
+
+- Namecheap: ${PYPKGPREFIX}-namecheap (net/py-namecheap)
+- SoftLayer: ${PYPKGPREFIX}-softlayer (net/py-softlayer)
+- Amazon Route 53: ${PYPKGPREFIX}-boto3 (net/py-boto3)
+
+===========================================================================
diff --git a/net/py-lexicon/Makefile b/net/py-lexicon/Makefile
index 8e54f28a49f..e6fcc6f709f 100644
--- a/net/py-lexicon/Makefile
+++ b/net/py-lexicon/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.20 2017/12/09 18:06:45 fhajny Exp $
+# $NetBSD: Makefile,v 1.21 2018/01/23 10:54:20 fhajny Exp $
-DISTNAME= lexicon-2.1.16
+DISTNAME= lexicon-2.1.17
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GITHUB:=AnalogJ/}
@@ -17,5 +17,7 @@ DEPENDS+= ${PYPKGPREFIX}-future-[0-9]*:../../devel/py-future
DEPENDS+= ${PYPKGPREFIX}-requests-[0-9]*:../../devel/py-requests
DEPENDS+= ${PYPKGPREFIX}-tldextract-[0-9]*:../../net/py-tldextract
+MESSAGE_SUBST+= PYPKGPREFIX=${PYPKGPREFIX}
+
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/net/py-lexicon/PLIST b/net/py-lexicon/PLIST
index 22ad446b027..225038dff0d 100644
--- a/net/py-lexicon/PLIST
+++ b/net/py-lexicon/PLIST
@@ -1,5 +1,5 @@
-@comment $NetBSD: PLIST,v 1.13 2017/12/09 18:06:45 fhajny Exp $
-bin/lexicon
+@comment $NetBSD: PLIST,v 1.14 2018/01/23 10:54:20 fhajny Exp $
+bin/lexicon${PYVERSSUFFIX}
${PYSITELIB}/dns_${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/dns_${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/dns_${EGG_INFODIR}/dependency_links.txt
@@ -56,6 +56,8 @@ ${PYSITELIB}/lexicon/providers/luadns.pyo
${PYSITELIB}/lexicon/providers/luadns.pyc
${PYSITELIB}/lexicon/providers/memset.pyo
${PYSITELIB}/lexicon/providers/memset.pyc
+${PYSITELIB}/lexicon/providers/namecheap.pyo
+${PYSITELIB}/lexicon/providers/namecheap.pyc
${PYSITELIB}/lexicon/providers/namesilo.pyo
${PYSITELIB}/lexicon/providers/namesilo.pyc
${PYSITELIB}/lexicon/providers/nsone.pyo
@@ -96,6 +98,7 @@ ${PYSITELIB}/lexicon/providers/godaddy.py
${PYSITELIB}/lexicon/providers/linode.py
${PYSITELIB}/lexicon/providers/luadns.py
${PYSITELIB}/lexicon/providers/memset.py
+${PYSITELIB}/lexicon/providers/namecheap.py
${PYSITELIB}/lexicon/providers/namesilo.py
${PYSITELIB}/lexicon/providers/nsone.py
${PYSITELIB}/lexicon/providers/ovh.py
diff --git a/net/py-lexicon/distinfo b/net/py-lexicon/distinfo
index 2899c7264bd..976a9be6e26 100644
--- a/net/py-lexicon/distinfo
+++ b/net/py-lexicon/distinfo
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.20 2017/12/09 18:06:45 fhajny Exp $
+$NetBSD: distinfo,v 1.21 2018/01/23 10:54:20 fhajny Exp $
-SHA1 (lexicon-2.1.16.tar.gz) = c77e08fbff04d2f9a2b653152646df721151161d
-RMD160 (lexicon-2.1.16.tar.gz) = baf43ac3a32691a071b32f7c4227764d618694a4
-SHA512 (lexicon-2.1.16.tar.gz) = 93161bd00f8f5f6dfce3256085ea1ca7ae3188d3a7e866399b2c06ae497c8b673a042d8af731c59f2ed161b923890710a702232e9688848179288bf111c81d29
-Size (lexicon-2.1.16.tar.gz) = 250043 bytes
+SHA1 (lexicon-2.1.17.tar.gz) = b1688cac59debe958627fed77d6ad831d9f9303e
+RMD160 (lexicon-2.1.17.tar.gz) = 0f149c1adad3c79b147b22726a2c4b0fc5aeace2
+SHA512 (lexicon-2.1.17.tar.gz) = 394638fa073a56c2f2ead5a9512043309f73fdd85f5bceb8f1d8bcc86c8254f2ec538934175f7119c53fda9b793658244818956ea153de8fa3683ee07469b9a8
+Size (lexicon-2.1.17.tar.gz) = 260011 bytes
+SHA1 (patch-lexicon_providers_namecheap.py) = db709ee7ca825632fdca285839090d2ff6d7a6e4
+SHA1 (patch-setup.py) = 3ac3b6164e79d488a0592af6ec71539246376b70
diff --git a/net/py-lexicon/patches/patch-lexicon_providers_namecheap.py b/net/py-lexicon/patches/patch-lexicon_providers_namecheap.py
new file mode 100644
index 00000000000..522e163ec0a
--- /dev/null
+++ b/net/py-lexicon/patches/patch-lexicon_providers_namecheap.py
@@ -0,0 +1,19 @@
+$NetBSD: patch-lexicon_providers_namecheap.py,v 1.1 2018/01/23 10:54:20 fhajny Exp $
+
+Make namecheap support truly optional as promised.
+https://github.com/AnalogJ/lexicon/issues/163
+
+--- lexicon/providers/namecheap.py.orig 2018-01-22 17:28:26.000000000 +0000
++++ lexicon/providers/namecheap.py
+@@ -3,7 +3,10 @@ from __future__ import print_function
+
+ import logging
+
+-import namecheap
++try:
++ import namecheap #optional dep
++except ImportError:
++ pass
+
+ from .base import Provider as BaseProvider
+
diff --git a/net/py-lexicon/patches/patch-setup.py b/net/py-lexicon/patches/patch-setup.py
new file mode 100644
index 00000000000..15c8f294c2e
--- /dev/null
+++ b/net/py-lexicon/patches/patch-setup.py
@@ -0,0 +1,23 @@
+$NetBSD: patch-setup.py,v 1.1 2018/01/23 10:54:20 fhajny Exp $
+
+Version the script file.
+
+--- setup.py.orig 2018-01-22 17:28:26.000000000 +0000
++++ setup.py
+@@ -10,6 +10,7 @@ from setuptools import setup, find_packa
+ # To use a consistent encoding
+ from codecs import open
+ from os import path, listdir
++import sys
+
+ version = 'unknown'
+ with open(path.join(path.dirname(path.abspath(__file__)), 'VERSION'), encoding='utf-8') as version_file:
+@@ -96,7 +97,7 @@ setup(
+ # pip to create the appropriate form of executable for the target platform.
+ entry_points={
+ 'console_scripts': [
+- 'lexicon=lexicon.__main__:main',
++ 'lexicon' + sys.version[0:3] + '=lexicon.__main__:main',
+ ],
+ },
+ test_suite='tests'