34 lines
1.0 KiB
Bash
34 lines
1.0 KiB
Bash
# Template file for 'python3-jsonschema'
|
|
pkgname=python3-jsonschema
|
|
version=4.9.1
|
|
revision=1
|
|
wrksrc="jsonschema-${version}"
|
|
build_style=python3-pep517
|
|
hostmakedepends="hatchling hatch-vcs"
|
|
depends="python3-attrs python3-pyrsistent"
|
|
checkdepends="${depends} python3-pytest"
|
|
short_desc="Implementation of JSON Schema for Python3"
|
|
maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
|
|
license="MIT"
|
|
homepage="https://github.com/Julian/jsonschema"
|
|
changelog="https://raw.githubusercontent.com/Julian/jsonschema/master/CHANGELOG.rst"
|
|
distfiles="${PYPI_SITE}/j/jsonschema/jsonschema-${version}.tar.gz"
|
|
checksum=408c4c8ed0dede3b268f7a441784f74206380b04f93eb2d537c7befb3df3099f
|
|
|
|
do_check() {
|
|
rm -rf *.dist-info tmp # remove artifacts from previous unsuccessful check run
|
|
pip install --no-deps --target tmp ./jsonschema-$version-py3-none-any.whl
|
|
rm tmp/jsonschema/tests -rf
|
|
mv tmp/*.dist-info .
|
|
PYTHONPATH=. pytest
|
|
rm -rf *.dist-info tmp
|
|
}
|
|
|
|
pre_build() {
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION="${version}"
|
|
}
|
|
|
|
post_install() {
|
|
vlicense COPYING LICENSE
|
|
}
|