Skip to content
Snippets Groups Projects

Use PEP 517 workflow, Use SPDX license

Closed loqs requested to merge (removed):update into main
1 file
+ 4
4
Compare changes
  • Side-by-side
  • Inline
+ 4
4
@@ -8,10 +8,10 @@ pkgrel=8
pkgdesc='Python binding to the Networking and Cryptography (NaCl) library'
url='https://pypi.python.org/pypi/PyNaCl'
arch=('x86_64')
license=('Apache')
license=('Apache-2.0')
depends=('libsodium' 'python' 'python-six' 'python-cffi')
makedepends=('python-setuptools' 'python-pycparser' 'python-wheel')
makedepends=('python-setuptools' 'python-pycparser' 'python-wheel' 'python-build' 'python-installer')
source=("https://pypi.org/packages/source/P/PyNaCl/PyNaCl-$pkgver.tar.gz")
@@ -21,14 +21,14 @@ build() {
export SODIUM_INSTALL=system
cd "$srcdir"/PyNaCl-$pkgver
python setup.py build
python -m build --wheel --no-isolation
}
package() {
export SODIUM_INSTALL=system
cd PyNaCl-$pkgver
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
python -m installer --destdir="$pkgdir" dist/*.whl
}
# vim: set ts=4 sw=4 tw=0 ft=PKGBUILD :
Loading