void-packages/srcpkgs/python3-pytest-isort/template

28 lines
952 B
Bash

# Template file for 'python3-pytest-isort'
pkgname=python3-pytest-isort
version=3.1.0
revision=1
build_style=python3-pep517
hostmakedepends="python3-poetry-core"
depends="python3-pytest python3-isort"
checkdepends="${depends} python3-pytest-flake8 python3-pytest-black flake8"
short_desc="Pytest plugin to check import ordering using isort"
maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
license="MIT"
homepage="https://github.com/stephrdev/pytest-isort"
changelog="https://github.com/stephrdev/pytest-isort/raw/master/CHANGELOG.rst"
distfiles="https://github.com/stephrdev/pytest-isort/archive/refs/tags/${version}.tar.gz"
checksum=c6994dd442e2fe50f2667d6fa6e14a5800192966b628cc31107c8f96c36a514b
do_check() {
rm -rf tmp # remove artifacts from previous unsuccessful check run
mkdir tmp
bsdtar xf dist/pytest_isort-$version-py3-none-any.whl -C tmp
PYTHONPATH=tmp pytest
rm -rf tmp
}
post_install() {
vlicense LICENSE.rst
}