Add python-setuptools-rust (#5585)

This commit is contained in:
Christoph Reiter 2025-08-22 10:49:41 +02:00 committed by GitHub
parent d0820229c3
commit 5054ee2749
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 67 additions and 0 deletions

View File

@ -0,0 +1,33 @@
# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
pkgname=python-semantic-version
pkgver=2.10.0
pkgrel=1
pkgdesc="A library implementing the 'SemVer' scheme."
url="https://github.com/rbarrois/python-semanticversion"
license=('spdx:BSD-2-Clause')
msys2_references=(
'purl: pkg:pypi/semantic-version'
)
arch=('any')
depends=('python')
makedepends=(
'python-setuptools'
'python-build'
'python-installer'
)
source=("https://github.com/rbarrois/python-semanticversion/archive/$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=('e234480908f633d2d80fdd97e87699135b2ed2fc9876b7f41d1d4a2d3262a0c4')
build() {
cd "python-semanticversion-$pkgver"
python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd "python-semanticversion-$pkgver"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}

View File

@ -0,0 +1,34 @@
# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
pkgname=python-setuptools-rust
pkgver=1.11.1
pkgrel=1
pkgdesc="Compile and distribute Python extensions written in rust as easily as if they were written in C."
arch=('any')
license=('spdx:MIT')
url="https://github.com/PyO3/setuptools-rust"
msys2_references=(
'archlinux: python-setuptools-rust'
'purl: pkg:pypi/setuptools-rust'
)
depends=(
'rust'
'python-setuptools'
'python-semantic-version'
)
makedepends=('python-build' 'python-installer' 'python-setuptools-scm')
source=(""https://github.com/PyO3/setuptools-rust/archive/refs/tags/v$pkgver.tar.gz"")
sha256sums=('7891482400f8511739f727f4045dcd72b41bf689e4e5b90c97ff98daee5dbe85')
build() {
cd "setuptools-rust-$pkgver"
python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd "setuptools-rust-$pkgver"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}