[new package] python-id 1.5.0
This commit is contained in:
parent
02949cc82e
commit
2fdd4d54f5
36
mingw-w64-python-id/PKGBUILD
Normal file
36
mingw-w64-python-id/PKGBUILD
Normal file
@ -0,0 +1,36 @@
|
||||
# Maintainer: Konstantin Podsvirov <konstantin@podsvirov.pro>
|
||||
|
||||
_realname=id
|
||||
pkgbase=mingw-w64-python-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
|
||||
pkgver=1.5.0
|
||||
pkgrel=1
|
||||
pkgdesc='A tool for generating OIDC identities (mingw-w64)'
|
||||
arch=('any')
|
||||
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
|
||||
url='https://pypi.org/project/id/'
|
||||
msys2_repository_url='https://github.com/di/id'
|
||||
license=('Apache-2.0')
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-python-requests")
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-flit-core"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-installer")
|
||||
options=('!strip')
|
||||
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz")
|
||||
sha256sums=('292cb8a49eacbbdbce97244f47a97b4c62540169c976552e497fd57df0734c1d')
|
||||
|
||||
build() {
|
||||
cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}"
|
||||
|
||||
python -m build --wheel --skip-dependency-check --no-isolation
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "python-build-${MSYSTEM}"
|
||||
|
||||
MSYS2_ARG_CONV_EXCL="--prefix=" \
|
||||
python -m installer --prefix=${MINGW_PREFIX} \
|
||||
--destdir="${pkgdir}" dist/*.whl
|
||||
|
||||
install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE"
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user