Package Details: python-numpy-typing-compat 20251206.2.4-1

Git Clone URL: https://aur.archlinux.org/python-numpy-typing-compat.git (read-only, click to copy)
Package Base: python-numpy-typing-compat
Description: Static typing compatibility layer for older versions of NumPy
Upstream URL: https://github.com/jorenham/numpy-typing-compat
Licenses: BSD-3-Clause
Submitter: carlosal1015
Maintainer: carlosal1015
Last Packager: carlosal1015
Votes: 0
Popularity: 0.000000
First Submitted: 2025-08-16 05:05 (UTC)
Last Updated: 2026-01-02 18:04 (UTC)

Latest Comments

MartinDiehl commented on 2026-01-02 15:52 (UTC)

there are now versions for specific numpy versions which leads to a 404. The following PKGBUILD works:

# Maintainer: Carlos Aznarán <caznaranl@uni.pe>
_base=numpy-typing-compat
pkgname=python-${_base}
pkgdesc="Static typing compatibility layer for older versions of NumPy"
pkgver=20251206
npver=2.4
pkgrel=1
arch=(any)
url="https://github.com/jorenham/${_base}"
license=(BSD-3-Clause)
depends=(python)
makedepends=(python-build python-installer python-numpy python-uv-build python-jinja python-wheel)
source=(https://pypi.org/packages/source/${_base::1}/${_base}/${_base//-/_}-${pkgver}.${npver}.tar.gz)
sha512sums=('eba8d37b28f9a17b8f2679a6017d40adc418e898802a4674550deed16074780136bc336bd547f79de1fd53a28fa688299dbe41dc17403aba173f4f355f9f6b93')

build() {
  cd ${_base//-/_}-${pkgver}.${npver}
  python -m build --wheel --skip-dependency-check --no-isolation
}

package() {
  cd ${_base//-/_}-${pkgver}.${npver}
  PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}

carlosal1015 commented on 2025-09-13 03:05 (UTC)

I open an issue, let's see what upstream replies.

https://github.com/jorenham/numpy-typing-compat/issues/61

MartinDiehl commented on 2025-09-12 07:31 (UTC)

build fails for me (in chroot with extra-x86_64-build), looks like an internal version check goes wrong

==> Retrieving sources...
  -> Found numpy-typing-compat-20250818.tar.gz
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Extracting numpy-typing-compat-20250818.tar.gz with bsdtar
==> Starting build()...
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/build/python-numpy-typing-compat/src/numpy-typing-compat-20250818/build.py", line 436, in <module>
    sys.exit(main(*sys.argv[1:]))
             ~~~~^^^^^^^^^^^^^^^
  File "/build/python-numpy-typing-compat/src/numpy-typing-compat-20250818/build.py", line 406, in main
    latest_hashes = _fetch_latest_release_hashes()
  File "/build/python-numpy-typing-compat/src/numpy-typing-compat-20250818/build.py", line 154, in _fetch_latest_release_hashes
    assert match, file
           ^^^^^
AssertionError: {'core-metadata': {'sha256': '429421d546896f5de0f178fc98c1ac92f406542450fc7215fe6092bacf423022'}, 'data-dist-info-metadata': {'sha256': '429421d546896f5de0f178fc98c1ac92f406542450fc7215fe6092bacf423022'}, 'filename': 'numpy_typing_compat-20250818.1.22-py3-none-any.whl', 'hashes': {'sha256': '4fd6c935883b0ad42f1a6d0cde15e694c6bbe18978a76446b5e2fb3a4c9c266c'}, 'provenance': 'https://pypi.org/integrity/numpy-typing-compat/20250818.1.22/numpy_typing_compat-20250818.1.22-py3-none-any.whl/provenance', 'requires-python': '>=3.8', 'size': 6326, 'upload-time': '2025-08-18T23:46:28.469513Z', 'url': 'https://files.pythonhosted.org/packages/5d/13/87641b98900e686e03a30617eceb8cd1f3c8dc632cfba10c35d2c9d0cfd7/numpy_typing_compat-20250818.1.22-py3-none-any.whl', 'yanked': False}
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Build failed, check /var/lib/archbuild/extra-x86_64/m/build