Skip to content

Commit ea8cb2a

Browse files
authored
Merge pull request #10341 from dennisameling/fix-python-zipp
Fix broken build for python-zipp
2 parents 55f8dbb + c04cc4d commit ea8cb2a

File tree

5 files changed

+128
-5
lines changed

5 files changed

+128
-5
lines changed
+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Maintainer: ???
2+
3+
_pyname=func_timeout
4+
_realname=func-timeout
5+
pkgbase=mingw-w64-python-${_realname}
6+
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
7+
pkgver=4.3.5
8+
pkgrel=1
9+
pkgdesc='Python module which allows you to specify timeouts when calling any existing function, and support for stoppable threads (mingw-w64)'
10+
arch=('any')
11+
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
12+
url="https://github.com/kata198/func_timeout"
13+
license=('MIT')
14+
makedepends=(
15+
"${MINGW_PACKAGE_PREFIX}-python-setuptools"
16+
"${MINGW_PACKAGE_PREFIX}-python-setuptools-scm"
17+
)
18+
source=("${_pyname}-${pkgver}.tar.gz::https://pypi.org/packages/source/${_pyname::1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
19+
sha256sums=('74cd3c428ec94f4edfba81f9b2f14904846d5ffccc27c92433b8b5939b5575dd')
20+
21+
prepare() {
22+
cd "$srcdir"
23+
rm -rf python-build-${CARCH} | true
24+
cp -r "$_pyname-$pkgver" "python-build-${CARCH}"
25+
export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver}
26+
}
27+
28+
build() {
29+
msg "Python build for ${CARCH}"
30+
cd "${srcdir}/python-build-${CARCH}"
31+
${MINGW_PREFIX}/bin/python setup.py build
32+
}
33+
34+
package() {
35+
cd "${srcdir}/python-build-${CARCH}"
36+
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
37+
${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} \
38+
--root="${pkgdir}" --optimize=1 --skip-build
39+
install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE"
40+
}

mingw-w64-python-inflect/PKGBUILD

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Maintainer: ???
2+
3+
_pyname=inflect
4+
_realname=inflect
5+
pkgbase=mingw-w64-python-${_realname}
6+
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
7+
pkgver=5.3.0
8+
pkgrel=1
9+
pkgdesc='Python module to correctly generate plurals, ordinals, indefinite articles; convert numbers to words (mingw-w64)'
10+
arch=('any')
11+
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
12+
url="https://github.com/jaraco/inflect"
13+
license=('MIT')
14+
makedepends=(
15+
"${MINGW_PACKAGE_PREFIX}-python-setuptools"
16+
"${MINGW_PACKAGE_PREFIX}-python-setuptools-scm"
17+
)
18+
source=("${_pyname}-${pkgver}.tar.gz::https://pypi.org/packages/source/${_pyname::1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
19+
sha256sums=('41a23f6788962e9775e40e2ecfb1d6455d02de315022afeedd3c5dc070019d73')
20+
21+
prepare() {
22+
cd "$srcdir"
23+
rm -rf python-build-${CARCH} | true
24+
cp -r "${_pyname//_/-}-$pkgver" "python-build-${CARCH}"
25+
export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver}
26+
}
27+
28+
build() {
29+
msg "Python build for ${CARCH}"
30+
cd "${srcdir}/python-build-${CARCH}"
31+
${MINGW_PREFIX}/bin/python setup.py build
32+
}
33+
34+
package() {
35+
cd "${srcdir}/python-build-${CARCH}"
36+
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
37+
${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} \
38+
--root="${pkgdir}" --optimize=1 --skip-build
39+
install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE"
40+
}
+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Maintainer: ???
2+
3+
_pyname=jaraco.itertools
4+
_realname=jaraco.itertools
5+
pkgbase=mingw-w64-python-${_realname}
6+
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
7+
pkgver=6.0.3
8+
pkgrel=1
9+
pkgdesc='Jaraco Itertools (mingw-w64)'
10+
arch=('any')
11+
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
12+
url="https://github.com/jaraco/jaraco.itertools"
13+
license=('MIT')
14+
depends=(
15+
"${MINGW_PACKAGE_PREFIX}-python-more-itertools"
16+
"${MINGW_PACKAGE_PREFIX}-python-inflect"
17+
)
18+
makedepends=(
19+
"${MINGW_PACKAGE_PREFIX}-python-setuptools"
20+
"${MINGW_PACKAGE_PREFIX}-python-setuptools-scm"
21+
)
22+
source=("${_pyname}-${pkgver}.tar.gz::https://pypi.org/packages/source/${_pyname::1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
23+
sha256sums=('1775bfcad5de275a540a36720c5ab34594ea1dbe7ffefa32099b0129c5604608')
24+
25+
prepare() {
26+
cd "$srcdir"
27+
rm -rf python-build-${CARCH} | true
28+
cp -r "${_pyname//_/-}-$pkgver" "python-build-${CARCH}"
29+
export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver}
30+
}
31+
32+
build() {
33+
msg "Python build for ${CARCH}"
34+
cd "${srcdir}/python-build-${CARCH}"
35+
${MINGW_PREFIX}/bin/python setup.py build
36+
}
37+
38+
package() {
39+
cd "${srcdir}/python-build-${CARCH}"
40+
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
41+
${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} \
42+
--root="${pkgdir}" --optimize=1 --skip-build
43+
install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE"
44+
}

mingw-w64-python-more-itertools/PKGBUILD

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
1010
replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
1111
pkgdesc="More routines for operating on iterables, beyond itertools (mingw-w64)"
1212
arch=('any')
13-
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
13+
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
1414
url="https://github.com/erikrose/more-itertools"
1515
license=('MIT')
1616
depends=("${MINGW_PACKAGE_PREFIX}-python")

mingw-w64-python-zipp/PKGBUILD

+3-4
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,16 @@ pkgver=3.1.0
1010
pkgrel=2
1111
pkgdesc="Pathlib-compatible object wrapper for zip files (mingw-w64)"
1212
arch=('any')
13-
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
13+
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
1414
url='https://github.com/jaraco/zipp'
1515
license=('MIT')
1616
validpgpkeys=('gpg_KEY')
1717
depends=("${MINGW_PACKAGE_PREFIX}-python"
1818
"${MINGW_PACKAGE_PREFIX}-python-more-itertools")
1919
makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools"
2020
"${MINGW_PACKAGE_PREFIX}-python-setuptools-scm")
21-
checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pathlib2"
22-
"${MINGW_PACKAGE_PREFIX}-python-contextlib2"
23-
"${MINGW_PACKAGE_PREFIX}-python-unittest2")
21+
checkdepends=("${MINGW_PACKAGE_PREFIX}-python-jaraco.itertools"
22+
"${MINGW_PACKAGE_PREFIX}-python-func-timeout")
2423
options=('staticlibs' 'strip' '!debug')
2524
source=("${_realname}-${pkgver}.tar.gz"::"https://github.com/jaraco/zipp/archive/v${pkgver}.tar.gz")
2625
sha512sums=('13df30bfb890f0a50928740e257cc8cf289cbb08b0394d841737730fe8a431a60086bb867fae1e8c343503ffd7a94be271abc42b67a77a6ce3be968a4c85fe2b')

0 commit comments

Comments
 (0)