Files
MSYS2-packages/python-charset-normalizer/PKGBUILD
Dirk Stolle bdb85129aa python-sphinx: add version 9.0.4 (new package) (#5905)
Adds Sphinx and its dependencies to MSYS2.

* python-babel: add version 2.17.0 (new package)

* python-snowballstemmer: add version 3.0.1 (new package)

* python-colorama: add version 0.4.6 (new package)

* python-imagesize: add version 1.4.1 (new package)

* python-roman-numerals: add version 4.1.0 (new package)

* python-charset-normalizer: add version 3.4.4 (new package)

* python-idna: add version 3.11 (new package)

* python-requests: add version 2.32.5 (new package)

* python-sphinx-alabaster-theme: add version 1.0.0 (new package)

* python-sphinxcontrib-applehelp: add version 2.0.0 (new package)

* python-sphinxcontrib-devhelp: add version 2.0.0 (new package)

* python-sphinxcontrib-htmlhelp: add version 2.1.0 (new package)

* python-sphinxcontrib-jsmath: add version 1.0.1 (new package)

* python-sphinxcontrib-qthelp: add version 2.0.0 (new package)

* python-sphinxcontrib-serializinghtml: add version 2.0.0 (new package)

* python-sphinx: add version 9.0.4 (new package)
2025-12-28 23:11:31 +01:00

50 lines
1.5 KiB
Bash

# Contributor: Dirk Stolle
_realname=charset-normalizer
pkgname=python-${_realname}
pkgver=3.4.4
pkgrel=1
pkgdesc='A library that helps you read text from an unknown charset encoding'
arch=('any')
url='https://charset-normalizer.readthedocs.io/'
msys2_repository_ulr='https://github.com/jawah/charset_normalizer'
msys2_changelog_url='https://github.com/jawah/charset_normalizer/blob/master/CHANGELOG.md'
msys2_references=(
'archlinux: python-charset-normalizer'
'gentoo: dev-python/charset-normalizer'
'purl: pkg:pypi/charset-normalizer'
)
license=('spdx:MIT')
depends=('python')
makedepends=(
'python-build'
'python-installer'
'python-setuptools'
)
checkdepends=('python-pytest')
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname/-/_}-${pkgver}.tar.gz")
sha256sums=('94537985111c35f28720e43603b8e7b43a6ecfb2ce1d3058bbe955b73404e21a')
build() {
cp -r "${_realname/-/_}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}"
python -m build --wheel --skip-dependency-check --no-isolation
}
check() {
cd "python-build-${MSYSTEM}"
# Test in virtual env., because tests need installed package.
python -m venv --system-site-packages test-env
test-env/bin/python -m installer dist/*.whl
test-env/bin/python -m pytest
}
package() {
cd "python-build-${MSYSTEM}"
python -m installer --prefix=${MSYSTEM_PREFIX} --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE "${pkgdir}${MSYSTEM_PREFIX}/share/licenses/python-${_realname}/LICENSE"
}