mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 06:48:18 -07:00
dev-python/hishel: new package, add 0.0.25
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
This commit is contained in:
1
dev-python/hishel/Manifest
Normal file
1
dev-python/hishel/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST hishel-0.0.25.gh.tar.gz 825114 BLAKE2B dd7d7bec47700a1ab07976ba31b951adacf7e917dd7ba09419cc6e3b81f1b6609a1f7f14a6c176b0c151ed255cf099f3da60122717b2be9161bd41b7ba080f36 SHA512 16aec1ea495075b4932e1e9d16b07af060b49bb74faed097343bde99c5d2b656b36762b2f2d67fd46c31b700206eec77ecdfb364a1c2cd19bb67c3055abc9e98
|
||||
55
dev-python/hishel/hishel-0.0.25.ebuild
Normal file
55
dev-python/hishel/hishel-0.0.25.ebuild
Normal file
@@ -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
|
||||
}
|
||||
12
dev-python/hishel/metadata.xml
Normal file
12
dev-python/hishel/metadata.xml
Normal file
@@ -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>chutzpah@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>
|
||||
Reference in New Issue
Block a user