mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
dev-python/http-snapshot: new package, add 0.1.9
Signed-off-by: Florian Albrechtskirchinger <falbrechtskirchinger@gmail.com>
This commit is contained in:
1
dev-python/http-snapshot/Manifest
Normal file
1
dev-python/http-snapshot/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST http-snapshot-0.1.9.gh.tar.gz 117951 BLAKE2B 2efbcb767dc8d084e2c5c629e196e6aba4cb36a8c8f76836a4053706f0375901153a1bd5db316700bc660dd855efb6b4c9233fb7f27fd4df20083c7a1cc554a9 SHA512 836530661757b20bb2df5da62d89956dd5781f8ca358e1f9974c884fbd751f79e0a5f3c851bbbcb28366995e5300f89b2df21eb19ec7d5a8f0425d588c005cfe
|
||||
52
dev-python/http-snapshot/http-snapshot-0.1.9.ebuild
Normal file
52
dev-python/http-snapshot/http-snapshot-0.1.9.ebuild
Normal file
@@ -0,0 +1,52 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=hatchling
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
|
||||
inherit distutils-r1 optfeature
|
||||
|
||||
DESCRIPTION="A pytest plugin that snapshots requests made with popular Python HTTP clients"
|
||||
HOMEPAGE="
|
||||
https://github.com/karpetrosyan/http-snapshot
|
||||
https://pypi.org/project/http-snapshot/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/karpetrosyan/http-snapshot/archive/refs/tags/${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/inline-snapshot-0.27.2[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
>=dev-python/httpx-0.28.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.32.5[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
EPYTEST_PLUGINS=( inline-snapshot anyio )
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
distutils-r1_src_prepare
|
||||
|
||||
cat >> pyproject.toml <<-EOF || die
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
EOF
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature_header "Install supported HTTP clients:"
|
||||
optfeature "httpx" dev-python/httpx
|
||||
optfeature "requests" dev-python/requests
|
||||
}
|
||||
12
dev-python/http-snapshot/metadata.xml
Normal file
12
dev-python/http-snapshot/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>falbrechtskirchinger@gmail.com</email>
|
||||
<name>Florian Albrechtskirchinger</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">http-snapshot</remote-id>
|
||||
<remote-id type="github">karpetrosyan/http-snapshot</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user