blob: e85a77f0a0816fa568d6404576132c23371f9efd (
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
37
38
39
40
|
# Maintainer: Joshua Smith <smolsheep@opensuse.org>
pkgname=python-specfile
_pkgname=${pkgname#python-}
pkgver=0.32.5
pkgrel=1
pkgdesc='A library for parsing and manipulating RPM spec files'
url='https://github.com/packit/specfile'
arch=('any')
license=(MIT)
makedepends=(
python-build
python-wheel
python-installer
python-setuptools-scm
# Tests
rpm-tools
python-pytest
python-flexmock
)
depends=(
rpm-tools
python-typing_extensions
)
_archive="$_pkgname-$pkgver"
source=("$_archive.tar.gz::$url/archive/refs/tags/${pkgver}.tar.gz")
b2sums=('9ef1e0088250923605217730b15b19e7fae8dafc4f6459048cbfb84946b8062b04cdfcf8bb1f4f85c329f27e945d33a2237476fc011829e85c350d5d2ada26e2')
build(){
cd $_archive
python -m build --wheel --no-isolation
}
check(){
cd $_archive
pytest -k 'not test_update_tag'
}
package(){
cd $_archive
python -m installer --destdir="$pkgdir" dist/*.whl
}
|