summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2018-05-27 01:59:35 +0000
committerminskim <minskim@pkgsrc.org>2018-05-27 01:59:35 +0000
commit1b9ae584115afd46667f48a0f92bd3cac6264d3a (patch)
tree7a352e02d950989b5ee0c5f2d7c1dde78b46259b /textproc
parent398c7488355d209544af05d0ce5896f51c99db44 (diff)
downloadpkgsrc-1b9ae584115afd46667f48a0f92bd3cac6264d3a.tar.gz
textproc/py-sphinx-autodoc-typehints: Import version 1.3.0
This extension allows you to use Python 3 annotations for documenting acceptable argument types and return value types of functions. This allows you to use type hints in a very natural fashion.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/py-sphinx-autodoc-typehints/DESCR3
-rw-r--r--textproc/py-sphinx-autodoc-typehints/Makefile26
-rw-r--r--textproc/py-sphinx-autodoc-typehints/PLIST9
-rw-r--r--textproc/py-sphinx-autodoc-typehints/distinfo7
-rw-r--r--textproc/py-sphinx-autodoc-typehints/patches/patch-setup.cfg15
5 files changed, 60 insertions, 0 deletions
diff --git a/textproc/py-sphinx-autodoc-typehints/DESCR b/textproc/py-sphinx-autodoc-typehints/DESCR
new file mode 100644
index 00000000000..71c40c3b2b0
--- /dev/null
+++ b/textproc/py-sphinx-autodoc-typehints/DESCR
@@ -0,0 +1,3 @@
+This extension allows you to use Python 3 annotations for documenting
+acceptable argument types and return value types of functions. This
+allows you to use type hints in a very natural fashion.
diff --git a/textproc/py-sphinx-autodoc-typehints/Makefile b/textproc/py-sphinx-autodoc-typehints/Makefile
new file mode 100644
index 00000000000..af648ba96e7
--- /dev/null
+++ b/textproc/py-sphinx-autodoc-typehints/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2018/05/27 01:59:35 minskim Exp $
+
+DISTNAME= sphinx-autodoc-typehints-1.3.0
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= textproc python
+MASTER_SITES= ${MASTER_SITE_PYPI:=s/sphinx-autodoc-typehints/}
+
+MAINTAINER= minskim@NetBSD.org
+HOMEPAGE= https://github.com/agronholm/sphinx-autodoc-typehints
+COMMENT= Type hints support for the Sphinx autodoc extension
+LICENSE= mit
+
+DEPENDS+= ${PYPKGPREFIX}-sphinx>=1.4:../../textproc/py-sphinx
+TEST_DEPENDS+= ${PYPKGPREFIX}-test>=3.1.0:../../devel/py-test
+
+USE_LANGUAGES= # none
+
+PYTHON_VERSIONS_INCOMPATIBLE= 27
+
+.include "../../lang/python/pyversion.mk"
+.if "${PYPKGPREFIX}" == "py34"
+DEPENDS+= ${PYPKGPREFIX}-typing>=3.5:../../devel/py-typing
+.endif
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/py-sphinx-autodoc-typehints/PLIST b/textproc/py-sphinx-autodoc-typehints/PLIST
new file mode 100644
index 00000000000..e5a4e2b2680
--- /dev/null
+++ b/textproc/py-sphinx-autodoc-typehints/PLIST
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1 2018/05/27 01:59:35 minskim Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/sphinx_autodoc_typehints.py
+${PYSITELIB}/sphinx_autodoc_typehints.pyc
+${PYSITELIB}/sphinx_autodoc_typehints.pyo
diff --git a/textproc/py-sphinx-autodoc-typehints/distinfo b/textproc/py-sphinx-autodoc-typehints/distinfo
new file mode 100644
index 00000000000..db4fa8987f9
--- /dev/null
+++ b/textproc/py-sphinx-autodoc-typehints/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2018/05/27 01:59:35 minskim Exp $
+
+SHA1 (sphinx-autodoc-typehints-1.3.0.tar.gz) = f748fe87594438ffd9475ed2ab4c787e66d6c955
+RMD160 (sphinx-autodoc-typehints-1.3.0.tar.gz) = 099eb1d9801982b3c297383f4a9c68a1b26b8c60
+SHA512 (sphinx-autodoc-typehints-1.3.0.tar.gz) = 04b7398f5b969c2802022799609c55cfd3201e4cd60f85fa5ef5670e67fc6154904872410776b37258f58517a629885d15f08aa1ba5281dad2ad2480cd89cc5b
+Size (sphinx-autodoc-typehints-1.3.0.tar.gz) = 10043 bytes
+SHA1 (patch-setup.cfg) = 1ccc450914d50544268b87b485df63a54feebbfb
diff --git a/textproc/py-sphinx-autodoc-typehints/patches/patch-setup.cfg b/textproc/py-sphinx-autodoc-typehints/patches/patch-setup.cfg
new file mode 100644
index 00000000000..fca6c2d7d5d
--- /dev/null
+++ b/textproc/py-sphinx-autodoc-typehints/patches/patch-setup.cfg
@@ -0,0 +1,15 @@
+$NetBSD: patch-setup.cfg,v 1.1 2018/05/27 01:59:35 minskim Exp $
+
+Remove a non-ascii character.
+
+--- setup.cfg.orig 2018-03-18 16:36:50.000000000 +0000
++++ setup.cfg
+@@ -2,7 +2,7 @@
+ name = sphinx-autodoc-typehints
+ description = Type hints (PEP 484) support for the Sphinx autodoc extension
+ long_description = file: README.rst
+-author = Alex Grönholm
++author = Alex Gronholm
+ author_email = alex.gronholm@nextday.fi
+ url = https://github.com/agronholm/sphinx-autodoc-typehints
+ license = MIT