summaryrefslogtreecommitdiff
path: root/python-xraydb/PKGBUILD
blob: 1ee0e7c7624d341f4ed117135b3e0e0044738861 (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
# Maintainer: Erich Eckner <arch at eckner dot net>

pkgname='python-xraydb'
pkgver=4.4.7
pkgrel=2
arch=('any')
url='https://github.com/xraypy/XrayDB'
license=('Unlicense')
pkgdesc='X-ray Reference Data in SQLite library, including a Python interface'
_pkgname="XrayDB"
source=("$_pkgname-$pkgver.tar.gz::https://github.com/xraypy/XrayDB/archive/$pkgver.tar.gz")
sha512sums=('c05f7bd86d22195b92167bad9cd298d4882350fea470823034e66c13a30d992c730d5de0f9f4b94b6764ed78531748f0c86b3b45574ee8dc02a1b5518672f78d')
depends=(
  'python<3.10'
  'python>=3.9'
  'python-numpy>=1.10'
  'python-scipy>=0.17'
  'python-sqlalchemy')
makedepends=(
  'python-setuptools')

build() {
  cd "${srcdir}/${_pkgname}-${pkgver}/python"
  python setup.py build
}

package() {
  cd "${srcdir}/${_pkgname}-${pkgver}/python"
  python setup.py install --root="$pkgdir"
}