www-servers/servefile: 0.5.4 + Python 3.11

Signed-off-by: Sebastian Pipping <sping@gentoo.org>
This commit is contained in:
Sebastian Pipping
2023-01-24 00:51:14 +01:00
parent 708460e50b
commit e4e6cae511
2 changed files with 42 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST servefile-0.5.3.tar.gz 20761 BLAKE2B bc4bd25aca01e0ac7d00e684cc8b0f848b295df2f02fe441c05d634cd415f395b0e5e083b5771c1d0dcd45ad897ac00e75ca999a76a9d0d0719c82ddb558a029 SHA512 9e6dd5927808cbb66163f207bed28f2c044d996ef1f4e77163cbf257e3e66169f58e92dba252ae389660d11e01d307fc1d8c749e903e232853c70867ce44e219
DIST servefile-0.5.4.tar.gz 21936 BLAKE2B 3356edbe20a76dc7750700cb1adb90625554065ecc904f7a32ea599523e897c0f2ce6c5d4fd4689ddd68572fa55a7fc2eb6d1e27c4bc6f44a737cdcc28eebad3 SHA512 114ca0c156c41002f1ec4d547f309fafe0d698560129c8365f1b6317547e46837c123d2659a17583deb78f9975ae31388a72a831e3a1f0f3e6ad2b21fe254884

View File

@@ -0,0 +1,41 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..11} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1
DESCRIPTION="Serve a single file via HTTP"
HOMEPAGE="https://github.com/sebageek/servefile"
SRC_URI="https://github.com/sebageek/servefile/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="ssl test"
RDEPEND="
ssl? ( dev-python/pyopenssl[${PYTHON_USEDEP}] )
sys-apps/grep
sys-apps/iproute2
sys-apps/net-tools
sys-apps/sed"
DEPEND="test? (
${RDEPEND}
dev-python/requests[${PYTHON_USEDEP}]
)"
S="${WORKDIR}"/${P}
PATCHES=(
"${FILESDIR}"/${PN}-0.5.2-ipv6-absent-tests.patch
)
distutils_enable_tests pytest
src_install() {
distutils-r1_src_install
doman ${PN}.1
}