Initial upload: python-preggy 1.4.4-1

This commit is contained in:
2022-08-05 16:11:06 +02:00
parent f84a23c746
commit 0d64f5a754
2 changed files with 49 additions and 0 deletions

16
python-preggy/.SRCINFO Normal file
View File

@@ -0,0 +1,16 @@
pkgbase = python-preggy
pkgdesc = assertion library for Python
pkgver = 1.4.4
pkgrel = 1
url = https://pypi.org/project/preggy
arch = any
license = MIT
checkdepends = python-pytest
makedepends = python-setuptools
depends = python-six
depends = python-colorama
depends = python-unidecode
source = https://files.pythonhosted.org/packages/source/p/preggy/preggy-1.4.4.tar.gz
b2sums = ed656f848349c0cdb0f44151ded15db1b68b7358a4633417a6889b4be9397dc0de96dbd5f43bb26f748d9cd4f16532f1954f3978690afa9e792ce24fbe942b20
pkgname = python-preggy

33
python-preggy/PKGBUILD Normal file
View File

@@ -0,0 +1,33 @@
# Maintainer: Giovanni Harting <539@idlegandalf.com>
pkgname=python-preggy
_name=${pkgname#python-}
pkgver=1.4.4
pkgrel=1
pkgdesc="assertion library for Python"
arch=('any')
url="https://pypi.org/project/preggy"
license=('MIT')
depends=(python-six python-colorama python-unidecode)
makedepends=('python-setuptools')
checkdepends=(python-pytest)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/${_name//-/_}-$pkgver.tar.gz")
b2sums=('ed656f848349c0cdb0f44151ded15db1b68b7358a4633417a6889b4be9397dc0de96dbd5f43bb26f748d9cd4f16532f1954f3978690afa9e792ce24fbe942b20')
build() {
cd $_name-$pkgver
python setup.py build
}
check() {
cd $_name-$pkgver
pytest
}
package() {
cd $_name-$pkgver
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
#install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}