git: cde0e8998d18 - main - textproc/py-docstring-parser: New port

From: Kai Knoblich <kai_at_FreeBSD.org>
Date: Mon, 28 Feb 2022 12:03:26 UTC
The branch main has been updated by kai:

URL: https://cgit.FreeBSD.org/ports/commit/?id=cde0e8998d182521f686f021c571b86c2fec1305

commit cde0e8998d182521f686f021c571b86c2fec1305
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2022-02-28 11:42:40 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2022-02-28 11:42:40 +0000

    textproc/py-docstring-parser: New port
    
    This package makes the parsing of Python docstrings easier.
    
    Currently supported docstrings are:
    
    * Epydoc docstrings.
    * Google
    * Numpydoc-style
    * ReST
    
    WWW: https://github.com/rr-/docstring_parser
---
 textproc/Makefile                      |  1 +
 textproc/py-docstring-parser/Makefile  | 26 ++++++++++++++++++++++++++
 textproc/py-docstring-parser/distinfo  |  3 +++
 textproc/py-docstring-parser/pkg-descr | 10 ++++++++++
 4 files changed, 40 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index 9b6d6815c70b..b502ac5c204f 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1289,6 +1289,7 @@
     SUBDIR += py-dbfread
     SUBDIR += py-diff-match-patch
     SUBDIR += py-docrepr
+    SUBDIR += py-docstring-parser
     SUBDIR += py-docutils
     SUBDIR += py-docx2txt
     SUBDIR += py-dominate
diff --git a/textproc/py-docstring-parser/Makefile b/textproc/py-docstring-parser/Makefile
new file mode 100644
index 000000000000..ab8f65b4617a
--- /dev/null
+++ b/textproc/py-docstring-parser/Makefile
@@ -0,0 +1,26 @@
+PORTNAME=	docstring-parser
+DISTVERSION=	0.13
+CATEGORIES=	textproc python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	docstring_parser-${DISTVERSION}
+
+MAINTAINER=	kai@FreeBSD.org
+COMMENT=	Parse Python docstrings in ReST, Google and Numpydoc format
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.md
+
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
+
+USES=		python:3.6+
+USE_PYTHON=	autoplist distutils
+
+TEST_ENV=	PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+NO_ARCH=	yes
+
+do-test:
+	@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs
+
+.include <bsd.port.mk>
diff --git a/textproc/py-docstring-parser/distinfo b/textproc/py-docstring-parser/distinfo
new file mode 100644
index 000000000000..fc7f6847c192
--- /dev/null
+++ b/textproc/py-docstring-parser/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1645879557
+SHA256 (docstring_parser-0.13.tar.gz) = 66dd7eac7232202bf220fd98a5f11491863c01f958a75fdd535c7eccac9ced78
+SIZE (docstring_parser-0.13.tar.gz) = 23223
diff --git a/textproc/py-docstring-parser/pkg-descr b/textproc/py-docstring-parser/pkg-descr
new file mode 100644
index 000000000000..788f649f2fd0
--- /dev/null
+++ b/textproc/py-docstring-parser/pkg-descr
@@ -0,0 +1,10 @@
+This package makes the parsing of Python docstrings easier.
+
+Currently supported docstrings are:
+
+* Epydoc docstrings.
+* Google
+* Numpydoc-style
+* ReST
+
+WWW: https://github.com/rr-/docstring_parser