Package Details: nato-spell-git 0.3.1.r0.g575f3e3-1

Git Clone URL: https://aur.archlinux.org/nato-spell-git.git (read-only, click to copy)
Package Base: nato-spell-git
Description: Spelling engine for the NATO phonetic alphabet
Upstream URL: https://github.com/Qu4tro/nato-spell
Licenses: MIT
Conflicts: nato-spell
Provides: nato-spell
Submitter: Quatro
Maintainer: Quatro
Last Packager: Quatro
Votes: 1
Popularity: 0.000000
First Submitted: 2020-04-13 23:29 (UTC)
Last Updated: 2020-05-02 14:27 (UTC)

Required by (1)

Sources (1)

Latest Comments

dreieck commented on 2023-05-05 18:36 (UTC) (edited on 2023-05-05 18:41 (UTC) by dreieck)

Fails for me due to missing file tar: nato-spell-0.3.1.tar.gz:

==> Starting prepare()...
Building nato-spell (0.3.1)
  - Building sdist
  - Built nato_spell-0.3.1.tar.gz
  - Building wheel
  - Built nato_spell-0.3.1-py3-none-any.whl
tar: nato-spell-0.3.1.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
==> ERROR: A failure occurred in prepare().

The file is called nato_spell-0.3.1.tar.gz.

You need to replace $_pkgname by nato_spell at 3 different locations.

And also, the setup.py is no longer existing. You need to use something like python wheel:

build() {
  cd "$_pkgname/dist/nato_spell-$_pkgver"

  python -m build --wheel --no-isolation
}

package() {
  cd "$_pkgname/dist/nato_spell-$_pkgver"
  python -m installer --destdir="$pkgdir" --compile-bytecode=2 dist/*.whl
}

And then build fails with

* Getting build dependencies for wheel...

ERROR Missing dependencies:
    poetry>=0.12
    poetry-plugin-export<2.0.0,>=1.3.0 -> poetry<2.0.0,>=1.3.0 -> platformdirs<3.0.0,>=2.5.2
    poetry>=0.12
    platformdirs<3.0.0,>=2.5.2
==> ERROR: A failure occurred in build().

:-(

regards!