upgpkg: python-pyssim 0.6-2
switched to PEP 517
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
pkgbase = python-pyssim
|
||||
pkgdesc = Module for computing Structured Similarity Image Metric (SSIM) in Python
|
||||
pkgver = 0.6
|
||||
pkgrel = 1
|
||||
pkgrel = 2
|
||||
url = https://pypi.org/project/pyssim
|
||||
arch = any
|
||||
license = MIT
|
||||
checkdepends = python-pytest
|
||||
makedepends = python-build
|
||||
makedepends = python-installer
|
||||
makedepends = python-wheel
|
||||
makedepends = python-setuptools
|
||||
depends = python-pillow
|
||||
depends = python-scipy
|
||||
|
@@ -3,25 +3,25 @@
|
||||
pkgname=python-pyssim
|
||||
_name=${pkgname#python-}
|
||||
pkgver=0.6
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Module for computing Structured Similarity Image Metric (SSIM) in Python"
|
||||
arch=(any)
|
||||
url="https://pypi.org/project/pyssim"
|
||||
license=(MIT)
|
||||
depends=(python-pillow python-scipy)
|
||||
makedepends=(python-setuptools)
|
||||
makedepends=(python-build python-installer python-wheel python-setuptools)
|
||||
checkdepends=(python-pytest)
|
||||
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/${_name//-/_}-$pkgver.tar.gz")
|
||||
b2sums=('54a66aaf416f4c0f78895431e51a2d24741ee49fa4d8c01592e5d28c41979e6b45468609f1d24fb74486902805415589116b11031772ad561c6d65667e165b46')
|
||||
|
||||
build() {
|
||||
cd $_name-$pkgver
|
||||
python setup.py build
|
||||
python -m build --wheel --no-isolation
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $_name-$pkgver
|
||||
python setup.py install --root="$pkgdir" --optimize=1
|
||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||
install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user