summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b1030fe2b2939216cef929891796b3d03c14b0e3 (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: yuhldr <yuhldr@qq.com>

pkgname=('python-seekpath')
pkgver=2.2.1
pkgrel=1
pkgdesc="A module to obtain and visualize k-vector coefficients and obtain band paths in the Brillouin zone of crystal structures"
arch=('any')
url="https://github.com/giovannipizzi/seekpath"
license=('MIT')
depends=("python-numpy" "spglib")
optdepends=("python-scipy")
makedepends=(
    'python-setuptools'
    'python'
    "python-flit-core"
)
source=("${url}/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('0b83b02c815e87a89fb329f5b75c9cc5dd9bb22b4c98881722ff2ba08bc27b6a')

build() {
  cd "$srcdir"/seekpath-$pkgver/
  rm -rf dist
  python -m build --wheel --no-isolation
}


package() {
  cd "$srcdir"/seekpath-$pkgver/
  PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps dist/*.whl
}