mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
# Contributor: TBK <alpine@jjtc.eu>
|
|
# Maintainer:
|
|
pkgname=py3-pyftpdlib
|
|
pkgver=1.5.10
|
|
pkgrel=0
|
|
pkgdesc="Extremely fast and scalable Python FTP server library."
|
|
url="https://pypi.org/project/pyftpdlib/"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="py3-openssl py3-pysendfile"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
|
checkdepends="py3-psutil py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/p/pyftpdlib/pyftpdlib-$pkgver.tar.gz
|
|
test-with-psutil-5.9.patch
|
|
"
|
|
builddir="$srcdir/pyftpdlib-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
c8c28d7aab13f2aab222ae038bde96f17abefd461830813ca00b621a6ee3e809c59ed135149ba735e7e92a6722aecfaf7095ccbacd7b3e17a16ee69fe1668766 pyftpdlib-1.5.10.tar.gz
|
|
26b90d8053da0d415fcdbe771c6e285884ca158d12bf15ff3fc5d57bc5df902a7ac0128cf5839b1affe8ca52fbd62a35b2070808043f00bd0150ce383f465b8a test-with-psutil-5.9.patch
|
|
"
|