[new-package] python-attrdict3 2.0.2
This commit is contained in:
committed by
GitHub
parent
ff7cb11c1a
commit
e4dc9f321a
42
mingw-w64-python-attrdict3/PKGBUILD
Normal file
42
mingw-w64-python-attrdict3/PKGBUILD
Normal file
@@ -0,0 +1,42 @@
|
||||
# Contributor: Mehdi Chinoune <mehdi.chinoune@hotmail.com>
|
||||
|
||||
_realname=attrdict3
|
||||
pkgbase=mingw-w64-python-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
|
||||
pkgver=2.0.2
|
||||
pkgrel=1
|
||||
pkgdesc="A dict with attribute-style access (mingw-w64)"
|
||||
arch=('any')
|
||||
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
|
||||
url='https://github.com/pirofti/AttrDict3'
|
||||
license=('MIT')
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-python"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-six")
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools")
|
||||
checkdepends=("${MINGW_PACKAGE_PREFIX}-python-nose"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-coverage")
|
||||
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz")
|
||||
sha256sums=('004c171ca1120cc1755701db99d7fa4944afb1e68950434efdaa542513335fe8')
|
||||
|
||||
build() {
|
||||
cd "${srcdir}"
|
||||
cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}"
|
||||
|
||||
"${MINGW_PREFIX}"/bin/python setup.py build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "${srcdir}/python-build-${MSYSTEM}"
|
||||
|
||||
"${MINGW_PREFIX}"/bin/python setup.py check
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/python-build-${MSYSTEM}"
|
||||
|
||||
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
|
||||
"${MINGW_PREFIX}"/bin/python setup.py install --prefix="${MINGW_PREFIX}" \
|
||||
--root="${pkgdir}" --optimize=1 --skip-build
|
||||
|
||||
install -Dm644 LICENSE.txt "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE"
|
||||
}
|
||||
Reference in New Issue
Block a user