blob: d2b0eab40e1b44fcd9e57b2eed01fecc179610d7 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Maintainer: Claudia Pellegrino <aur ät cpellegrino.de>
pkgname=python-pip-audit-git
_gitpkgname=pip-audit
pkgver=r654.060cc5d
pkgrel=1
pkgdesc='A tool for scanning Python environments for known vulnerabilities'
arch=('any')
url='https://github.com/pypa/pip-audit'
license=('Apache-2.0')
depends=(
'python'
'python-cachecontrol'
'python-cyclonedx-lib'
'python-html5lib'
'python-packaging'
'python-pip-api'
'python-pip-requirements-parser'
'python-requests'
'python-rich'
'python-toml'
)
checkdepends=('git' 'python-pretend' 'python-pytest')
makedepends=(
'git'
'python-build'
'python-flit'
'python-installer'
)
conflicts=('python-pip-audit')
provides=('python-pip-audit')
options=('!debug' '!strip')
source=("${_gitpkgname}::git+https://github.com/pypa/pip-audit.git")
sha512sums=('SKIP')
pkgver() {
printf "r%s.%s" \
"$(git -C "${_gitpkgname}" rev-list --count HEAD)" \
"$(git -C "${_gitpkgname}" rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${_gitpkgname}"
python -m build --wheel --no-isolation
}
check() {
cd "${srcdir}/${_gitpkgname}"
python -m pytest
}
package() {
cd "${srcdir}/${_gitpkgname}"
python -I -m installer --destdir="${pkgdir}" dist/*.whl
install -D -m 644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE
}
|