upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-mss / trunk / PKGBUILD
blobc735473358f5946ea3a9ca0bd26bccfa958aa52c
1 # Maintainer: Bruno Pagani <archange@archlinux.org>
3 _pkg=mss
4 pkgname=python-${_pkg}
5 pkgver=7.0.1
6 pkgrel=2
7 pkgdesc="Ultra fast cross-platform multiple screenshots module"
8 arch=(any)
9 url="https://github.com/BoboTiG/python-mss"
10 license=(MIT)
11 depends=(python)
12 makedepends=(python-build python-installer python-setuptools)
13 checkdepends=(python-pytest xorg-server-xvfb libxrandr lsof python-flaky python-wheel)
14 source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
15 #source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
16 sha256sums=('f14cee528903c3b01d3b8f1209cd498422f71e3d0d2d92c5b933edd3b9772022')
18 build() {
19   cd ${_pkg}-${pkgver}
20   python -m build --wheel --no-isolation
23 check() {
24   cd ${_pkg}-${pkgver}
25   PYTHONPATH="${PWD}/build/lib/" xvfb-run -a -s "+extension RANDR +render -screen 0 1024x768x24" pytest -k 'not test_wheel_python_3_only'
28 package() {
29   cd ${_pkg}-${pkgver}
30   python -m installer --destdir="${pkgdir}" dist/*.whl
31   install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}