summaryrefslogtreecommitdiff
path: root/dev-python/browser-cookie3/browser-cookie3-0.19.1.ebuild
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2024-04-14 18:52:26 +0200
committerBernard Cafarelli <voyageur@gentoo.org>2024-04-14 23:09:12 +0200
commit0267d6837be054117a1b9b2e949f1c6331879575 (patch)
tree0f4a4fdba818429cf290339a5ef03facaafe6105 /dev-python/browser-cookie3/browser-cookie3-0.19.1.ebuild
parentad706da84c48a34b5d7a02ef505a2bcdb44123e3 (diff)
downloadgentoo-0267d6837be054117a1b9b2e949f1c6331879575.tar.gz
gentoo-0267d6837be054117a1b9b2e949f1c6331879575.tar.bz2
gentoo-0267d6837be054117a1b9b2e949f1c6331879575.zip
dev-python/browser-cookie3: add 0.19.1
Closes: https://bugs.gentoo.org/910611 Closes: https://bugs.gentoo.org/929440 Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
Diffstat (limited to 'dev-python/browser-cookie3/browser-cookie3-0.19.1.ebuild')
-rw-r--r--dev-python/browser-cookie3/browser-cookie3-0.19.1.ebuild37
1 files changed, 37 insertions, 0 deletions
diff --git a/dev-python/browser-cookie3/browser-cookie3-0.19.1.ebuild b/dev-python/browser-cookie3/browser-cookie3-0.19.1.ebuild
new file mode 100644
index 000000000000..f8317832b583
--- /dev/null
+++ b/dev-python/browser-cookie3/browser-cookie3-0.19.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYPI_NO_NORMALIZE=1
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Loads cookies from your browser into a cookiejar object"
+HOMEPAGE="
+ https://github.com/borisbabic/browser_cookie3/
+ https://pypi.org/project/browser-cookie3/
+"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+# Tests require selenium, browsers, and are aimed for one-shot validation of
+# cookie file format validation for documentation
+RESTRICT="test"
+
+RDEPEND="
+ dev-python/dbus-python[${PYTHON_USEDEP}]
+ dev-python/lz4[${PYTHON_USEDEP}]
+ dev-python/pycryptodome[${PYTHON_USEDEP}]
+"
+
+python_prepare_all() {
+ # make cryptodome-friendly
+ sed -i -e 's:pycryptodomex:pycryptodome:' setup.py || die
+ sed -i -e 's:Cryptodome:Crypto:g' browser_cookie3/__init__.py || die
+
+ distutils-r1_python_prepare_all
+}