blob: 62afeb7e535d3a88f678bdaa231240402be78309 (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Maintainer: Torleif Skår <torleif.skaar AT gmail DOT com>
# Contributor: Lucas H. Gabrielli <heitzmann@gmail.com>
_pkgname=gdspy
pkgname=python-${_pkgname}
pkgver=1.6.13
pkgrel=1
pkgdesc="Gdspy is a Python module for creating GDSII stream files, usually CAD layouts."
url="https://github.com/heitzmann/gdspy"
arch=('x86_64' 'i686')
license=("BSL-1.0")
depends=(
'python'
'python-numpy'
'glibc'
'gcc-libs'
)
makedepends=(
'git'
'python-build'
'python-installer'
'python-setuptools'
)
checkdepends=(
'python-pytest'
)
install="${pkgname}.install"
conflicts=("${pkgname}-git")
source=("${_pkgname}::git+${url}#tag=v${pkgver}")
b2sums=('69d819b63fc5eb5059c6e0aae59e0234a217196528887583a85e37e3e4fe9baf38c01aa9f7458b27e63f2bed93c0a29919f07b26801cd571b4474f75d9e8d80d')
build() {
cd "${_pkgname}"
python -m build --wheel --no-isolation
}
check() {
cd "${_pkgname}"
local python_version=$(python -c 'import sys; print("".join(map(str, sys.version_info[:2])))')
PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-$python_version" pytest
}
package() {
cd "${_pkgname}"
python -m installer --destdir="$pkgdir" dist/*.whl
# Install license
install -Dm0644 -t "${pkgdir}/usr/share/licenses/${pkgname}/" LICENSE
}
# vim: set ts=4 sw=4 et:
|