blob: 22aa6e6591b4da89eef53d58283b82ee20fdc9c8 (
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: William J. Bowman <aur@williamjbowman.com>
# Contributer: Felix Yan <felixonmars@archlinux.org>
pkgbase=python-defusedxml-git
pkgname=("python-defusedxml-git")
_pkgname="defusedxml"
pkgver=v0.8.0rc2.r1.gc744588
pkgrel=2
pkgdesc="XML bomb protection for Python stdlib modules"
arch=('any')
url='https://github.com/tiran/defusedxml'
license=('PSF-2.0')
depends=('python-lxml')
makedepends=('git' 'python' 'python-build' 'python-installer' 'python-wheel' 'python-setuptools')
conflicts=('python-defusedxml')
provides=('python-defusedxml')
source=('git+https://github.com/tiran/defusedxml.git')
md5sums=('SKIP')
pkgver() {
cd "$_pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$_pkgname"
python -m build --wheel --no-isolation
}
check(){
cd "$_pkgname"
python -m tests
}
package() {
cd "$_pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|