From bebcbbfe44f01e989e04a8d0acee147332211593 Mon Sep 17 00:00:00 2001 From: dragon-archer Date: Sun, 11 Jan 2026 12:39:35 +0800 Subject: [PATCH] python-folium: add new version 0.20.0 (new package) (#27288) --- mingw-w64-python-folium/PKGBUILD | 48 ++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 mingw-w64-python-folium/PKGBUILD diff --git a/mingw-w64-python-folium/PKGBUILD b/mingw-w64-python-folium/PKGBUILD new file mode 100644 index 0000000000..b0633846c3 --- /dev/null +++ b/mingw-w64-python-folium/PKGBUILD @@ -0,0 +1,48 @@ +# Contributor: dragon-archer + +_realname=folium +pkgbase=mingw-w64-python-${_realname} +pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") +pkgver=0.20.0 +pkgrel=1 +pkgdesc='Make beautiful maps with Leaflet.js & Python. (mingw-w64)' +arch=('any') +mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +url='https://github.com/python-visualization/folium' +msys2_references=( + "purl: pkg:pypi/folium" +) +license=('spdx:MIT') +depends=("${MINGW_PACKAGE_PREFIX}-python" + "${MINGW_PACKAGE_PREFIX}-python-branca" + "${MINGW_PACKAGE_PREFIX}-python-jinja" + "${MINGW_PACKAGE_PREFIX}-python-numpy" + "${MINGW_PACKAGE_PREFIX}-python-requests" + "${MINGW_PACKAGE_PREFIX}-python-xyzservices") +makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" + "${MINGW_PACKAGE_PREFIX}-python-installer" + "${MINGW_PACKAGE_PREFIX}-python-setuptools" + "${MINGW_PACKAGE_PREFIX}-python-setuptools-scm") +options=('!strip') +source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz") +sha256sums=('a0d78b9d5a36ba7589ca9aedbd433e84e9fcab79cd6ac213adbcff922e454cb9') + +prepare() { + export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver} +} + +build() { + cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}" + + ${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation +} + +package() { + cd "python-build-${MSYSTEM}" + + MSYS2_ARG_CONV_EXCL="--prefix=" \ + ${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \ + --destdir="${pkgdir}" dist/*.whl + + install -Dm644 LICENSE.txt "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE" +}