mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
31 lines
952 B
Text
31 lines
952 B
Text
# Contributor: Roberto Oliveira <robertoguimaraes8@gmail.com>
|
|
# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
|
|
pkgname=py3-defusedxml
|
|
_pkgname=defusedxml
|
|
pkgver=0.7.1
|
|
pkgrel=3
|
|
pkgdesc="XML bomb protection for Python stdlib modules"
|
|
url="https://github.com/tiran/defusedxml"
|
|
arch="noarch"
|
|
license="Python-2.0"
|
|
depends="python3"
|
|
makedepends="py3-setuptools"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/tiran/defusedxml/archive/v$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
replaces=py-defusedxml # Backwards compatibility
|
|
provides=py-defusedxml=$pkgver-r$pkgrel # Backwards compatibility
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 setup.py test
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="4f536794b814291520c7db27765014c57f415554cff569cddab596b33e1aa03799aae9448fdaf07417d1a9f4d8782aa827d1b68aac6881ffe5c2ca9b8a40d864 py3-defusedxml-0.7.1.tar.gz"
|