blob: b9e57eb7818a21e187138804e0303c70c91cd53c (
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
|
# Maintainer: Lu Xu <oliver_lew at outlook dot com>
pkgname=python-psrqpy
_name=${pkgname#python-}
pkgver=1.3.2
pkgrel=1
pkgdesc="A python module to query the ATNF pulsar catalogue"
arch=(any)
url="https://github.com/mattpitkin/psrqpy"
license=('MIT')
depends=(
"python-requests"
"python-beautifulsoup4"
"python-numpy"
"python-scipy"
"python-astropy"
"python-pandas"
"python-ads"
"python-matplotlib"
"python-appdirs"
)
optdepends=("python-pytest")
makedepends=("python-setuptools")
conflicts=("${pkgname}-git")
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=(a9446891447d46555134793ccfed40f156b8bbab2ba1b3d1fe7750b2a6e36667)
build() {
cd "$srcdir/$_name-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/$_name-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}/
cp LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/
}
|