summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5392d7d47a4ff1611f53eae9e4ab91423055d8db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Achmad Fathoni<fathoni.id(at)gmail.com>
pkgname=python-pytest-recording
_pkgname=pytest_recording
pkgver=0.13.0
pkgrel=1
pkgdesc="A pytest plugin that allows you recording of network interactions via VCR.py"
arch=('any')
url="https://pypi.org/project/${_pkgname}"
license=('MIT')
makedepends=(python-build python-installer python-wheel)
depends=(python python-vcrpy python python-pytest python-attrs)
source=(https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz)
sha256sums=('b24b707af843341457d9d340328f361eceb0efe980e388341941b4fada3745ca')

build() {
    cd ${srcdir}/${_pkgname}-${pkgver}
    python -m build --wheel --no-isolation
}

package() {
    cd ${srcdir}/${_pkgname}-${pkgver}
    python -m installer --destdir="$pkgdir" dist/*.whl
}