diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 19 |
1 files changed, 12 insertions, 7 deletions
@@ -3,14 +3,14 @@ pkgname=python-pykeepass-git _gitname=pykeepass -pkgver=4.0.6 +pkgver=4.0.7.r4.ge43ca6c # renovate: datasource=github-tags depName=libkeepass/pykeepass pkgrel=1 pkgdesc="Python library to interact with keepass databases" arch=("any") license=("GPL3") url="https://github.com/libkeepass/pykeepass" -depends=("python-argon2_cffi" "python-construct" "python-dateutil" "python-future" "python-lxml" "python-pycryptodomex") -makedepends=("git" "python-setuptools") +depends=("python-argon2_cffi" "python-construct" "python-dateutil" "python-future" "python-lxml" "python-pycryptodomex" "python-setuptools") +makedepends=("git" "python-build" "python-installer" "python-wheel") provides=(python-pykeepass) conflicts=(python-pykeepass) source=("git+https://github.com/libkeepass/pykeepass.git") @@ -18,16 +18,21 @@ sha512sums=('SKIP') pkgver() { cd "${srcdir}/${_gitname}/" - git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^pykeepass\.//' } -prepare() { +build() { cd "${srcdir}/${_gitname}/" + python -m build --wheel --no-isolation +} + +check() { + cd "${srcdir}/${_gitname}/" + python -m unittest tests.tests } package() { cd "${srcdir}/${_gitname}/" - python3 setup.py install --root="${pkgdir}/" --optimize=1 - install -m 644 -D LICENSE "${pkgdir}/usr/share/licenses/${_gitname}/LICENSE" + python3 -m installer --destdir="${pkgdir}" dist/*.whl } |