Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions BioArchLinux/python-pyjess/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Maintainer: Martin Larralde <martin.larralde@embl.de>

_name=pyjess
pkgname=python-${_name}
pkgver=0.9.1
pkgrel=1
pkgdesc="Cython bindings and Python interface to Jess, a 3D template matching software."
url="https://github.com/althonos/pyjess"
arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
license=("MIT")
depends=('python')
makedepends=('cython' 'python-build' 'python-installer' 'cmake' 'ninja' 'python-scikit-build-core')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=(196630cd5dbd731d68bc74746acc8cf03e8b09c4c334f6e926ecc8ff352aeddd)

build() {
cd "${srcdir}/${_name}-${pkgver}"
python -m build --wheel --no-isolation
}

check() {
local machine=$(python -c 'import platform; print(platform.machine())')
whl="${srcdir}/${_name}-${pkgver}/dist/${_name}-${pkgver}-cp38-abi3-linux_${machine}.whl"

if [ -e "${srcdir}/env" ]; then rm -rd "${srcdir}/env"; fi
python -m venv --symlinks --system-site-packages "${srcdir}/env"
source "${srcdir}/env/bin/activate"
python -m installer "$whl"

python -m unittest ${_name}.tests
}

package() {
local machine=$(python -c 'import platform; print(platform.machine())')
whl="${srcdir}/${_name}-${pkgver}/dist/${_name}-${pkgver}-cp38-abi3-linux_${machine}.whl"

python -m installer --prefix="${pkgdir}/usr" "$whl"
install -Dm644 "${srcdir}/${_name}-${pkgver}/COPYING" "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}
14 changes: 14 additions & 0 deletions BioArchLinux/python-pyjess/lilac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
maintainers:
- github: althonos
email: althonosdev@gmail.com
build_prefix: extra-x86_64
pre_build_script: |
update_pkgver_and_pkgrel(_G.newver.lstrip('v'))
run_cmd(['updpkgsums'])
post_build_script: |
git_pkgbuild_commit()
update_aur_repo()
update_on:
- source: pypi
pypi: pyjess
- alias: python