Skip to content

Commit

Permalink
python-exceptiongroup: initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
noptrix committed May 14, 2024
1 parent 47d7e47 commit 11b9301
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions packages/python-exceptiongroup/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-exceptiongroup
_pyname=${pkgname#python-}
pkgver=1.2.1
pkgrel=3
pkgdesc='Backport of PEP 654 (exception groups).'
arch=('any')
url='https://github.com/agronholm/exceptiongroup'
license=('MIT')
depends=('python')
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-flit-scm')
source=("https://github.com/agronholm/exceptiongroup/archive/refs/tags/$pkgver.tar.gz")
sha512sums=('6f1f29e017192f5881f28855692ad41fe781846b5daa082699350c8dd5990bc3aa54751e1776c620a3a48bf5a8d5bd9b4b50f09d848051b00ba19d825116e7a7')

build() {
cd "$_pyname-$pkgver"

export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver

python -m build -wn
}

package() {
cd "$_pyname-$pkgver"

export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver

python -m installer -d "$pkgdir" dist/*.whl

install -Dm 644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
}

0 comments on commit 11b9301

Please sign in to comment.