Package Details: python-nocasedict 2.0.1-2

Git Clone URL: https://aur.archlinux.org/python-nocasedict.git (read-only, click to copy)
Package Base: python-nocasedict
Description: A case-insensitive ordered dictionary for Python
Upstream URL: https://github.com/pywbem/nocasedict
Licenses: GPLv2.1+
Submitter: k0ste
Maintainer: k0ste
Last Packager: k0ste
Votes: 0
Popularity: 0.000000
First Submitted: 2022-04-08 13:18 (UTC)
Last Updated: 2024-03-04 19:10 (UTC)

Latest Comments

carlosal1015 commented on 2024-03-04 19:05 (UTC)

Hi, I have the following message error

==> Retrieving sources...
  -> Found 2.0.1.tar.gz
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Extracting 2.0.1.tar.gz with bsdtar
==> Starting build()...
* Getting build dependencies for wheel...

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/pyproject_hooks/_impl.py", line 321, in _call_hook
    raise BackendUnavailable(data.get('traceback', ''))
pyproject_hooks._impl.BackendUnavailable: Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 77, in _build_backend
    obj = import_module(mod_path)
          ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'setuptools'

ERROR Backend 'setuptools.build_meta:__legacy__' is not available.
==> ERROR: A failure occurred in build().
    Aborting...

Please consider fixing with this suggestion

# Maintainer: Shalygin Konstantin <k0ste@k0ste.ru>
# Contributor: Carlos Aznarán <caznaranl@uni.pe>

_name=nocasedict
pkgname=python-${_name}
pkgver=2.0.1
pkgrel=2
pkgdesc="A case-insensitive ordered dictionary for Python"
arch=(any)
url="https://github.com/pywbem/${_name}"
depends=(python)
makedepends=(python-build python-installer python-setuptools python-wheel)
checkdepends=(python-pytest)
license=(LGPL-2.1-or-later)
source=(${_name}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz)
sha512sums=('9c3d2be33bd18cfd218d37148ed5e9feaa2dcfb2a6beed5fdac26764b570c3472ecb3cd13f3f8f393b76249ed93ea456be301f2d6b544d36e350f363e2ded82c')

build() {
  cd ${_name}-${pkgver}
  python -m build --wheel --skip-dependency-check --no-isolation
}

check() {
  cd ${_name}-${pkgver}
  python -m venv --system-site-packages test-env
  test-env/bin/python -m installer dist/*.whl
  test-env/bin/python -m pytest tests
}

package() {
  cd ${_name}-${pkgver}
  python -m installer --destdir="${pkgdir}" dist/*.whl
  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}