blob: 710a7bfd7851c5e1ad9739f25a9900141908eeea (
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
|
# Maintainer: Yakov Till <yakov.till@gmail.com>
# Contributor: Aseem Athale <athaleaseem@gmail.com>
# Contributor: Philip Goto <philip.goto@gmail.com>
_pkgname=srsly
pkgname=python-${_pkgname}
pkgver=2.5.5
pkgrel=1
pkgdesc='Modern high-performance serialization utilities for Python'
arch=('x86_64' 'aarch64')
url='https://github.com/explosion/srsly'
license=('MIT')
depends=('python' 'python-catalogue')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel' 'cython')
checkdepends=('python-pytest' 'python-pytest-timeout' 'python-mock')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/release-v${pkgver}.tar.gz")
sha256sums=('4ae7a5ffcc41f61b095fa1cf33891f430b5b841be0aea947a9b9f2fd6728a5b1')
latestver() {
curl -fsSL 'https://api.github.com/repos/explosion/srsly/releases/latest' |
jq -r '.tag_name // empty' | sed 's/^release-v//'
}
build() {
cd "${_pkgname}-release-v${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${_pkgname}-release-v${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}
|