blob: 1fabd4bddde4f7bccf1f3dda5f28e49641aedda4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Maintainer: Standa Lukeš <archpkg@exyi.cz>
_pyname="gemmi"
pkgname="python-${_pyname}"
pkgver=0.7.0
pkgrel=1
pkgdesc="macromolecular crystallography library (Python bindings)"
arch=(x86_64)
url="https://gemmi.readthedocs.io/"
license=('MPL-2.0')
makedepends=(nanobind cmake python-scikit-build-core python-build python-installer python-wheel)
depends=(python python-numpy)
checkdepends=()
source=("https://github.com/project-gemmi/${_pyname}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('7673b005846c661196dd49ac23bac3b1acc07b3afbdaff0e5d7f0f19b491e8c4')
build() {
cd "${_pyname}-${pkgver}"
# from gemmi/pyproject.toml, but they set it only for their CI
export SKBUILD_CMAKE_ARGS='-DBUILD_GEMMI_PROGRAM=OFF;-DINSTALL_DEV_FILES=OFF;-DBUILD_SHARED_LIBS=OFF;-DFETCH_ZLIB_NG=ON'
python -m build --wheel --no-isolation --skip-dependency-check
# it is too sensitive about exact versions ^^^^^^^^^^^^^^^^^^^
}
package() {
cd "${_pyname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
}
|