summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 438ce28c5cd89824b0689028b26cd03ae4941463 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Maintainer: Stefan Gehr <stefan@gehr.xyz>

pkgname=python-piscat-git
_name=PiSCAT
pkgver=r429.b9946cb
pkgrel=1
pkgdesc="Python Package for Interferometric Scattering Microscopy"
arch=('any')
url="https://github.com/SandoghdarLab/PiSCAT"
license=('GPL-3.0-only')
depends=(
	'python-gitpython'
	'python-pyqt6'
	'python-pyqt5-webengine'
	'pyside6'
	'python-astropy'
	'python-h5py'
	'python-ipywidgets'
	'python-joblib'
	'python-matplotlib'
	'python-networkx'
	# notebook
	'python-numba'
	'python-numpy'
	'python-opencv'
	'python-pandas'
	'python-psutil'
	'python-pyqtgraph'
	'python-requests'
	'python-scikit-learn'
	'python-scipy'
	'python-tensorflow'
	'python-tqdm'
	'python-looseversion'
	# from the AUR
	'python-flifile'
	'python-scikit-image'
	'python-tifffile'
	'python-trackpy'
	'python-wget'
	'python-pywavelets'
	'python-imageio-ffmpeg'
)
makedepends=(
	'git'
	'python-build'
	'python-hatchling'
	'python-installer'
	'python-wheel'
	'python-setuptools'
	'python-pytest'
)

source=("git+${url}.git")
b2sums=('SKIP')

pkgver() {
	cd ${_name}
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd ${_name}
	python -m build --wheel --no-isolation
}

#check() {
#	cd ${_name}
#	python -m pytest piscat tests
#}

package() {
	cd ${_name}
	python -m installer --destdir="$pkgdir" dist/*.whl
}