summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cb866f5198f42064d3872e2f1899ff208d5b3f5b (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
# Maintainer: Ben Westover <me@benthetechguy.net>

pkgname=python-rust2rpm
pkgver=25.0.1
pkgrel=1
pkgdesc="Tool for automatically generating RPM spec files for Rust crates"
arch=('any')
url="https://pagure.io/fedora-rust/rust2rpm"
license=('MIT')
depends=('python' 'python-cargo2rpm' 'python-jinja' 'python-jsonschema' 'python-pyparsing' 'python-requests' 'python-termcolor' 'python-tqdm' 'rust2rpm-helper')
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
checkdepends=('python-pytest' 'python-pytest-cov' 'python-pytest-mypy')
source=("https://pagure.io/fedora-rust/rust2rpm/archive/v${pkgver}/rust2rpm-v${pkgver}.tar.gz")
sha256sums=('41db725fa1a1409e0421d273b2b587f0d7c60d80681b230bed806d2a798b528c')

build() {
	cd rust2rpm-v$pkgver
	python -m build --wheel --no-isolation
}

check() {
	cd rust2rpm-v$pkgver
	PYTHONPATH=. pytest
}

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