summaryrefslogtreecommitdiff
path: root/security/py-gtts-token
diff options
context:
space:
mode:
Diffstat (limited to 'security/py-gtts-token')
-rw-r--r--security/py-gtts-token/Makefile28
-rw-r--r--security/py-gtts-token/distinfo3
-rw-r--r--security/py-gtts-token/pkg-descr4
3 files changed, 35 insertions, 0 deletions
diff --git a/security/py-gtts-token/Makefile b/security/py-gtts-token/Makefile
new file mode 100644
index 000000000000..f75fee4e0925
--- /dev/null
+++ b/security/py-gtts-token/Makefile
@@ -0,0 +1,28 @@
+# $FreeBSD$
+
+PORTNAME= gtts-token
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.1.3
+CATEGORIES= security python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= kai@FreeBSD.org
+COMMENT= Calculates a token to run the Google Translate text to speech
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR}
+
+USES= python
+USE_GITHUB= yes
+GH_ACCOUNT= Boudewijn26
+GH_PROJECT= gTTS-token
+USE_PYTHON= distutils autoplist
+
+NO_ARCH= yes
+
+do-test:
+ @cd ${WRKSRC} && ${PYTHON_CMD} -m unittest discover -v -s gtts_token/tests
+
+.include <bsd.port.mk>
diff --git a/security/py-gtts-token/distinfo b/security/py-gtts-token/distinfo
new file mode 100644
index 000000000000..8bc8533c5f94
--- /dev/null
+++ b/security/py-gtts-token/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1594276526
+SHA256 (Boudewijn26-gTTS-token-v1.1.3_GH0.tar.gz) = c0593de172ca8abd8c0fc408269818da2933f35f37b3a3a894666f91ccdc87eb
+SIZE (Boudewijn26-gTTS-token-v1.1.3_GH0.tar.gz) = 4751
diff --git a/security/py-gtts-token/pkg-descr b/security/py-gtts-token/pkg-descr
new file mode 100644
index 000000000000..818c008a9c5d
--- /dev/null
+++ b/security/py-gtts-token/pkg-descr
@@ -0,0 +1,4 @@
+Google Translate requires a tk param when making a request to its translate
+API. This project provides an implementation for that algorithm in Python.
+
+WWW: https://github.com/boudewijn26/gTTS-token