mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 03:35:38 +03:00
Switch to gpep517 and fix check failure due to removed `setup.py test` command, which was deprecated in setuptools 72.0.0. ``` usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help error: invalid command 'test' ``` Ref: https://gitlab.alpinelinux.org/alpine/aports/-/issues/17110
38 lines
1.2 KiB
Text
38 lines
1.2 KiB
Text
# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
|
|
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
|
|
pkgname=py3-ssdeep
|
|
pkgver=3.4.1
|
|
pkgrel=4
|
|
pkgdesc="Python wrapper for ssdeep fuzzy hashing library"
|
|
url="https://github.com/DinoTools/python-ssdeep"
|
|
arch="all"
|
|
license="LGPL-3.0-or-later"
|
|
depends="python3 py3-cffi py3-six"
|
|
makedepends="python3-dev py3-gpep517 py3-setuptools libfuzzy2-dev py3-wheel"
|
|
checkdepends="py3-pytest py3-pytest-runner"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/DinoTools/python-ssdeep/archive/$pkgver.tar.gz
|
|
pytest-runner.patch"
|
|
builddir="$srcdir/python-ssdeep-$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="
|
|
7b0fdde76e0fa76caa5bebc145bab16406f15bad34f455c3dfe8709003d06ae7def5b6d3130cdcbbeff54262a8fe39f2931cf3156a0cf1f4cc7126f4db190575 py3-ssdeep-3.4.1.tar.gz
|
|
aacd3eaa40b070523f67360df576afa336d4012262ee5bb687be6a3eac7a85050e37d37a1afa88b1889c653ab2e22ee682553aeabf5be3d56120d9b27ab71591 pytest-runner.patch
|
|
"
|