summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8e498317be3f02f930439b4d1e35b384867c508c (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: Lorenzo Gaifas <brisvag at gmail dot com>

_name='psygnal'
_author='pyapp-kit'
pkgname="python-${_name}"
pkgver=0.9.5
pkgrel=1
pkgdesc='Fast python callback/event system modeled after Qt Signals'
arch=('any')
url="https://github.com/${_author}/${_name}"
license=('BSD')
makedepends=(
  'python-build'
  'python-hatch-vcs'
  'python-hatchling'
  'python-installer'
)
depends=(
  'python'
  'python-mypy_extensions'
  'python-typing_extensions'
)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha256sums=('4956ea6c36a75f7fc457558935b67dd8be2594661b4d08eeb3357d69c509c55f')

build() {
  cd "${srcdir}/${_name}-${pkgver}"
  python -m build --wheel --no-isolation
}

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

  install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
  install -Dm644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
}

# vim:set ts=2 sw=2 et:<Paste>