blob: 4998f16a179b10ebfa88e9aa8efb2a2d4924515d (
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: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Andres Alejandro Navarro Alsina <aanavarroa@unal.edu.co>
# Contributor: GalSim developers team on GitHub
pkgname=python-galsim-git
_pkgname="${pkgname%-git}"
_pkg=GalSim
pkgver=2.3.5.r0.g96c80bde3
_pkgver="${pkgver%.r*}"
pkgrel=1
pkgdesc="Modular galaxy image simulation toolkit"
arch=('x86_64')
url="https://github.com/GalSim-developers/GalSim"
license=('BSD')
depends=(
'boost-libs'
'eigen'
'fftw'
'pybind11'
'python-astropy'
'python-coord'
'python-future'
'python-numpy')
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
# checkdepends=('python-nose' 'python-pandas' 'python-yaml')
provides=("$_pkgname=$_pkgver")
conflicts=("$_pkgname")
source=("$_pkgname::git+$url")
sha256sums=('SKIP')
pkgver() {
git -C "$_pkgname" describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./'
}
build() {
cd "$_pkgname"
python -m build --wheel --no-isolation
}
# check() {
# cd "$_pkgname"
# local _py="$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')"
# PYTHONPATH="$PWD/build/lib.linux-$CARCH-$_py" nosetests
# }
package() {
cd "$_pkgname"
PYTHONHASHSEED=0 python -m installer --destdir="$pkgdir" dist/*.whl
local _site="$(python -c 'import site; print(site.getsitepackages()[0])')"
install -d "$pkgdir/usr/share/licenses/$pkgname/"
ln -s "$_site/$_pkg-$_pkgver.dist-info/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/"
}
|