commit:     c5ed3f73bef2e4b3288653642deba1a5d58ae55e
Author:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
AuthorDate: Mon Apr  8 21:08:14 2024 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Mon Apr  8 22:30:31 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5ed3f73

dev-python/hishel: new package, add 0.0.25

Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 dev-python/hishel/Manifest             |  1 +
 dev-python/hishel/hishel-0.0.25.ebuild | 55 ++++++++++++++++++++++++++++++++++
 dev-python/hishel/metadata.xml         | 12 ++++++++
 3 files changed, 68 insertions(+)

diff --git a/dev-python/hishel/Manifest b/dev-python/hishel/Manifest
new file mode 100644
index 000000000000..273ee5c48ac2
--- /dev/null
+++ b/dev-python/hishel/Manifest
@@ -0,0 +1 @@
+DIST hishel-0.0.25.gh.tar.gz 825114 BLAKE2B 
dd7d7bec47700a1ab07976ba31b951adacf7e917dd7ba09419cc6e3b81f1b6609a1f7f14a6c176b0c151ed255cf099f3da60122717b2be9161bd41b7ba080f36
 SHA512 
16aec1ea495075b4932e1e9d16b07af060b49bb74faed097343bde99c5d2b656b36762b2f2d67fd46c31b700206eec77ecdfb364a1c2cd19bb67c3055abc9e98

diff --git a/dev-python/hishel/hishel-0.0.25.ebuild 
b/dev-python/hishel/hishel-0.0.25.ebuild
new file mode 100644
index 000000000000..5d674e566749
--- /dev/null
+++ b/dev-python/hishel/hishel-0.0.25.ebuild
@@ -0,0 +1,55 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=hatchling
+PYTHON_COMPAT=( python3_{10..12} )
+inherit distutils-r1
+
+DESCRIPTION="An elegant HTTP Cache implementation for HTTPX and HTTP Core"
+HOMEPAGE="
+       https://github.com/karpetrosyan/hishel
+       https://pypi.org/project/hishel/
+"
+SRC_URI="https://github.com/karpetrosyan/${PN}/archive/refs/tags/${PV}.tar.gz 
-> ${P}.gh.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+
+BDEPEND="
+       dev-python/hatch-fancy-pypi-readme[${PYTHON_USEDEP}]
+       test? (
+               dev-python/anyio[${PYTHON_USEDEP}]
+               dev-python/boto3[${PYTHON_USEDEP}]
+               dev-python/moto[${PYTHON_USEDEP}]
+               dev-python/trio[${PYTHON_USEDEP}]
+       )
+"
+
+distutils_enable_tests pytest
+
+EPYTEST_DESELECT=(
+       # tests that need anysqlite
+       "tests/_async/test_storages.py::test_sqlitestorage[asyncio]"
+       "tests/_async/test_storages.py::test_sqlitestorage[trio]"
+
+       # tests that need a running redis instance
+       "tests/_async/test_storages.py::test_redisstorage[asyncio]"
+       "tests/_async/test_storages.py::test_redisstorage_expired[asyncio]"
+       "tests/_async/test_storages.py::test_sqlite_expired[asyncio]"
+       "tests/_sync/test_storages.py::test_redisstorage[asyncio]"
+       "tests/_sync/test_storages.py::test_redisstorage_expired[asyncio]"
+       "tests/_sync/test_storages.py::test_redisstorage[trio]"
+       "tests/_sync/test_storages.py::test_redisstorage_expired[trio]"
+)
+
+python_prepare_all() {
+       sed -e 's:mock_s3:mock_aws:g' \
+               -e '/import anysqlite/ d' \
+               -i tests/_async/test_storages.py \
+               tests/_sync/test_storages.py || die
+
+       distutils-r1_python_prepare_all
+}

diff --git a/dev-python/hishel/metadata.xml b/dev-python/hishel/metadata.xml
new file mode 100644
index 000000000000..5cf037972bfe
--- /dev/null
+++ b/dev-python/hishel/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>chutz...@gentoo.org</email>
+               <name>Patrick McLean</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="pypi">hishel</remote-id>
+               <remote-id type="github">karpetrosyan/hishel</remote-id>
+       </upstream>
+</pkgmetadata>

Reply via email to