summaryrefslogtreecommitdiff
path: root/python-xraydb/PKGBUILD
blob: dbeff031053144345e796f93a7110722401e2e32 (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.5.0
pkgrel=4
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=('3a13e5bfef4d92eb58d44752171fc7c83be26402047b5b3aaee11e1a4cbf1eb5b8a4eb3d32f1cb98690b0ed5fd78191451c9659b1c90ed28b4bb4378679e1bac')
depends=(
  'python>=3.11'
  'python<3.12'
  'python-numpy>=1.10'
  'python-scipy>=0.17'
  'python-sqlalchemy>1.4')
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"
}