Initial upload: python-pyssim 0.5-1

This commit is contained in:
2022-08-05 16:28:44 +02:00
parent 0d64f5a754
commit ad46433e62
2 changed files with 43 additions and 0 deletions

16
python-pyssim/.SRCINFO Normal file
View File

@@ -0,0 +1,16 @@
pkgbase = python-pyssim
pkgdesc = Module for computing Structured Similarity Image Metric (SSIM) in Python
pkgver = 0.5
pkgrel = 1
url = https://pypi.org/project/pyssim
arch = any
license = MIT
checkdepends = python-pytest
makedepends = python-setuptools
depends = python-pillow
depends = python-scipy
depends = python-argparse
source = https://files.pythonhosted.org/packages/source/p/pyssim/pyssim-0.5.tar.gz
b2sums = 65ea5253d898d80b6bbfe930e546a8808ba04d19cac61ab9ec053ca1e31e19c5f8bc1e5c0bdd6f919a27fc75d282213442502e7f4e1f626381fe1d8dcd9a0809
pkgname = python-pyssim

27
python-pyssim/PKGBUILD Normal file
View File

@@ -0,0 +1,27 @@
# Maintainer: Giovanni Harting <539@idlegandalf.com>
pkgname=python-pyssim
_name=${pkgname#python-}
pkgver=0.5
pkgrel=1
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 python-argparse)
makedepends=('python-setuptools')
checkdepends=(python-pytest)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/${_name//-/_}-$pkgver.tar.gz")
b2sums=('65ea5253d898d80b6bbfe930e546a8808ba04d19cac61ab9ec053ca1e31e19c5f8bc1e5c0bdd6f919a27fc75d282213442502e7f4e1f626381fe1d8dcd9a0809')
build() {
cd $_name-$pkgver
python setup.py build
}
package() {
cd $_name-$pkgver
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}