mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 12:15:32 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
60 lines
1.5 KiB
Text
60 lines
1.5 KiB
Text
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
|
|
# Contributor: Jiri Kastner <cz172638@gmail.com>
|
|
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
|
|
_pyname=cheroot
|
|
pkgname=py3-cheroot
|
|
pkgver=9.0.0
|
|
pkgrel=1
|
|
pkgdesc="High-performance, pure-Python HTTP server used by CherryPy"
|
|
url="https://cheroot.cherrypy.dev/"
|
|
license="BSD-3-Clause"
|
|
arch="noarch"
|
|
depends="python3 py3-more-itertools py3-six py3-jaraco.functools"
|
|
# py3-setuptools_scm is needed to set python module version
|
|
makedepends="
|
|
py3-dateutil
|
|
py3-pbr
|
|
py3-portend
|
|
py3-setuptools
|
|
py3-setuptools_scm
|
|
"
|
|
checkdepends="
|
|
py3-jaraco.context
|
|
py3-jaraco.text
|
|
py3-openssl
|
|
py3-pypytools
|
|
py3-pytest
|
|
py3-pytest-cov
|
|
py3-pytest-mock
|
|
py3-requests-unixsocket
|
|
py3-requests-toolbelt
|
|
py3-pytest-xdist
|
|
py3-trustme
|
|
"
|
|
subpackages="$pkgname-tests"
|
|
source="https://files.pythonhosted.org/packages/source/c/$_pyname/$_pyname-$pkgver.tar.gz
|
|
setuptools-git.patch
|
|
"
|
|
builddir="$srcdir/$_pyname-$pkgver"
|
|
options="!check" # fail on deprecation warning
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
tests() {
|
|
depends="py3-cheroot"
|
|
amove usr/lib/python*/site-packages/cheroot/test
|
|
}
|
|
sha512sums="
|
|
86ea0dd2cb4cde25f86b489b1d0bb27e3e7c1ba5449759ccecaae689cdcb349b968fd0c8fb8bc8273deff5e32a078bf40f4342f0c5a1f53bb8d2b968f44a453b cheroot-9.0.0.tar.gz
|
|
7831aeeea0b6d1ed094c92eb697632395de903d5de170c37230db2b7d083041855473f8d50b93c1e2f630e0c411ccf5f909593b3160cb134339e9d3e21ed691c setuptools-git.patch
|
|
"
|