diff options
author | Henry-Joseph Audéoud | 2021-07-29 16:54:18 +0200 |
---|---|---|
committer | Henry-Joseph Audéoud | 2021-07-29 16:54:18 +0200 |
commit | d905c558febe4ca5c3f2dc9a64069079865ba816 (patch) | |
tree | dc8cfb08cf7c5f28958d281a2662c795215f50d2 | |
download | aur-d905c558febe4ca5c3f2dc9a64069079865ba816.tar.gz |
Initial upload: python-pycose 0.9.dev8-1
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f3f537907bac --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = python-pycose + pkgdesc = A Python implementation of the COSE specification described in RFC 8152 + pkgver = 0.9.dev8 + pkgrel = 1 + url = https://github.com/TimothyClaeys/pycose + arch = any + license = BSD + checkdepends = python-pytest + makedepends = python-setuptools + depends = python + depends = python-cbor2 + depends = python-cryptography + depends = python-ecdsa + depends = python-attrs + depends = python-certvalidator + source = python-pycose.tar.gz::https://github.com/TimothyClaeys/pycose/archive/refs/tags/v0.9.dev8.tar.gz + sha256sums = 43dc10e908d09e0afac011e518b026ba513204378f405cf885b822b26c63383e + +pkgname = python-pycose diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c517740efc12 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Henry-Joseph Audéoud <h.audeoud+aur@gmail.com> + +pkgname=python-pycose +_name="${pkgname#python-}" +pkgver=0.9.dev8 +pkgrel=1 +pkgdesc="A Python implementation of the COSE specification described in RFC 8152" +arch=(any) +url="https://github.com/TimothyClaeys/pycose" +license=(BSD) +depends=(python python-cbor2 python-cryptography python-ecdsa python-attrs python-certvalidator) +makedepends=(python-setuptools) +checkdepends=(python-pytest) +source=("${pkgname}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz") +sha256sums=('43dc10e908d09e0afac011e518b026ba513204378f405cf885b822b26c63383e') + +build() { + cd "${srcdir}/${_name}-${pkgver}" + python setup.py build +} + +package() { + cd "${srcdir}/${_name}-${pkgver}" + export PYTHONHASHSEED=0 + + python setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +check() { + cd "${srcdir}/${_name}-${pkgver}" + pytest +} |