File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
mingw-w64-python-databases Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ # Maintainer: Konstantin Podsvirov <[email protected] >2+
3+ _realname=databases
4+ pkgbase=mingw-w64-python-${_realname}
5+ pkgname=(" ${MINGW_PACKAGE_PREFIX} -python-${_realname} " )
6+ pkgver=0.9.0
7+ pkgrel=1
8+ pkgdesc=' Async database support for Python (mingw-w64)'
9+ arch=(' any' )
10+ mingw_arch=(' mingw64' ' ucrt64' ' clang64' ' clangarm64' )
11+ url=' https://www.encode.io/databases/'
12+ msys2_repository_url=' https://github.com/encode/databases'
13+ license=(' spdx:BSD-3-Clause' )
14+ depends=(" ${MINGW_PACKAGE_PREFIX} -python"
15+ " ${MINGW_PACKAGE_PREFIX} -python-sqlalchemy" )
16+ makedepends=(" ${MINGW_PACKAGE_PREFIX} -python-build"
17+ " ${MINGW_PACKAGE_PREFIX} -python-installer"
18+ " ${MINGW_PACKAGE_PREFIX} -python-setuptools" )
19+ optdepends=(" ${MINGW_PACKAGE_PREFIX} -python-aiosqlite: sqlite support"
20+ " ${MINGW_PACKAGE_PREFIX} -python-asyncpg: postgresql support" )
21+ options=(' !strip' )
22+ source=(" https://pypi.org/packages/source/${_realname:: 1} /${_realname} /${_realname} -${pkgver} .tar.gz" )
23+ sha256sums=(' d2f259677609bf187737644c95fa41701072e995dfeb8d2882f335795c5b61b0' )
24+
25+ build () {
26+ cp -r " ${_realname} -${pkgver} " " python-build-${MSYSTEM} " && cd " python-build-${MSYSTEM} "
27+
28+ python -m build --wheel --skip-dependency-check --no-isolation
29+ }
30+
31+ package () {
32+ cd " python-build-${MSYSTEM} "
33+
34+ MSYS2_ARG_CONV_EXCL=" --prefix=" \
35+ python -m installer --prefix=${MINGW_PREFIX} \
36+ --destdir=" ${pkgdir} " dist/* .whl
37+
38+ install -Dm644 LICENSE.md " ${pkgdir}${MINGW_PREFIX} /share/licenses/python-${_realname} /LICENSE.md"
39+ }
You can’t perform that action at this time.
0 commit comments