blob: 4ec5dce4b1a975f5c4519681cb9853867a007b1e (
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
|
# Maintainer: Mohamed Amine Zghal (medaminezghal) <medaminezghal at outlook dot com>
_name=smithy-json
pkgname=python-$_name
pkgver=0.2.3
pkgrel=1
pkgdesc='JSON serialization and deserialization support for Smithy tooling.'
arch=('any')
_repo='https://github.com/smithy-lang/smithy-python'
url="$_repo/tree/develop/packages/smithy-json"
license=('Apache-2.0')
depends=('python' 'python-ijson' 'python-smithy-core')
makedepends=('python-hatchling' 'python-build' 'python-installer' 'python-wheel' 'git')
checkdepends=('python-pytest' 'python-pytest-asyncio' 'python-freezegun')
source=("$_name::git+$_repo.git#tag=$_name/v$pkgver")
sha256sums=('76f4b6eecc4ae8e10a0ae5622e1f25d459f11bede40cdd191473dfe82279aa9c')
build() {
cd "$srcdir"/$_name/packages/$_name
python -m build --wheel --no-isolation
}
check() {
local pytest_options=(
-vv
--disable-warnings
--override-ini="addopts="
)
cd "$srcdir"/$_name/packages/$_name
PYTHONPATH=$PWD/src pytest "${pytest_options[@]}" tests
}
package() {
cd "$srcdir"/$_name/packages/$_name
python -m installer --destdir="$pkgdir" dist/*.whl
}
|