commit:     bc8a8f23587ea28497add9604115ed39005faa05
Author:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
AuthorDate: Thu Feb  9 22:06:38 2023 +0000
Commit:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
CommitDate: Thu Feb  9 23:26:32 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc8a8f23

dev-python/browser-cookie3: new package, add 0.17.0

Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>

 dev-python/browser-cookie3/Manifest                |  1 +
 .../browser-cookie3/browser-cookie3-0.17.0.ebuild  | 29 ++++++++++++++++++++++
 dev-python/browser-cookie3/metadata.xml            | 16 ++++++++++++
 3 files changed, 46 insertions(+)

diff --git a/dev-python/browser-cookie3/Manifest 
b/dev-python/browser-cookie3/Manifest
new file mode 100644
index 000000000000..5cfca6d0eaa2
--- /dev/null
+++ b/dev-python/browser-cookie3/Manifest
@@ -0,0 +1 @@
+DIST browser-cookie3-0.17.0.tar.gz 14926 BLAKE2B 
9be2310f0250ea1f20a1b3ee2ef252f8d6fe0100e63f6cc63a22b1ea28ae138c71e383ce0e84955a3399cc7b88079669c97a1577033dfe360f77ac7304e08b53
 SHA512 
db9a734c3fd76d770d2f0ef8f821ba4e38880e883e8b19a9953b9edf9df9e5eeea053f3005b596caa9f5d54e7e17f4a7b2db056c2c17616d6d5702853e0f3fae

diff --git a/dev-python/browser-cookie3/browser-cookie3-0.17.0.ebuild 
b/dev-python/browser-cookie3/browser-cookie3-0.17.0.ebuild
new file mode 100644
index 000000000000..ecb4796279d5
--- /dev/null
+++ b/dev-python/browser-cookie3/browser-cookie3-0.17.0.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit distutils-r1
+
+DESCRIPTION="Loads cookies from your browser into a cookiejar object"
+HOMEPAGE="https://github.com/borisbabic/browser_cookie3/";
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-python/lz4[${PYTHON_USEDEP}]
+       dev-python/pycryptodome[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}"
+
+python_prepare_all() {
+       # make cryptodome-friendly
+       sed -i -e 's:pycryptodomex:pycryptodome:' setup.py || die
+       sed -i -e 's:Cryptodome:Crypto:g' __init__.py || die
+
+       distutils-r1_python_prepare_all
+}

diff --git a/dev-python/browser-cookie3/metadata.xml 
b/dev-python/browser-cookie3/metadata.xml
new file mode 100644
index 000000000000..e5633c6d9603
--- /dev/null
+++ b/dev-python/browser-cookie3/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <maintainer type="person">
+    <email>voyag...@gentoo.org</email>
+    <name>Bernard Cafarelli</name>
+  </maintainer>
+  <maintainer type="project">
+    <email>pyt...@gentoo.org</email>
+    <name>Python</name>
+  </maintainer>
+  <upstream>
+    <remote-id type="pypi">browser-cookie3</remote-id>
+    <remote-id type="github">borisbabic/browser_cookie3</remote-id>
+  </upstream>
+</pkgmetadata>

Reply via email to