Package Details: python-ninja 1.11.1.3-4

Git Clone URL: https://aur.archlinux.org/python-ninja.git (read-only, click to copy)
Package Base: python-ninja
Description: The infrastructure to build Ninja Python wheels
Upstream URL: https://github.com/scikit-build/ninja-python-distributions
Licenses: Apache-2.0
Submitter: peippo
Maintainer: peippo
Last Packager: peippo
Votes: 3
Popularity: 0.56
First Submitted: 2024-05-20 08:14 (UTC)
Last Updated: 2025-02-20 10:44 (UTC)

Latest Comments

tskaar commented on 2025-02-20 11:41 (UTC)

@peippo: Ahh, I see, just as an FYI:

Maybe it's just easier to change to the git tag, i.e:

diff --git a/PKGBUILD b/PKGBUILD
index 868f03a..35600ce 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,6 +16,7 @@ depends=(
     "python"
 )
 makedepends=(
+    "git"
     "python-build"
     "python-hatch-fancy-pypi-readme"
     "python-installer"
@@ -24,16 +25,17 @@ makedepends=(
     "python-wheel"
 )

-source=("${pkgname}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_name::1}/${_name//-/_}/${_name//-/_}-$pkgver.tar.gz")
-b2sums=('aca27e9ef22c7fd0a7a39c07ec9e626dc65756a8718397a8af6cd03f6d4c570f57e260c901e97f6bdb373df9d9f1f472ad67f2342e49b1a844f6ae9132cdcbba')
+source=("${pkgname}-${pkgver}::git+${url}#tag=${pkgver}")
+b2sums=('7e52ce49ab6e73be73e69f8fe5fa4e9faa04f983372c62b69f77c45987ebe3829e9398e4457284f27fac03c6ecaad8118e2451cac7281cd248cc4827c3eecca8')
+

 build() {
-    cd "${srcdir}/${_name}-${pkgver}"
+    cd "${srcdir}/${pkgname}-${pkgver}"
     python -m build --wheel --no-isolation
 }

 package() {
-    cd "${srcdir}/${_name}-${pkgver}"
+    cd "${srcdir}/${pkgname}-${pkgver}"
     python -m installer --destdir="$pkgdir" dist/*.whl
     rm "${pkgdir}/usr/bin/ninja"  # conflict with `ninja`
 }

peippo commented on 2025-02-20 10:23 (UTC) (edited on 2025-02-20 10:23 (UTC) by peippo)

@tskaar: it seems to be changing back and forth: https://aur.archlinux.org/cgit/aur.git/commit/?h=python-ninja&id=f49d3ca064084d34076ef39154d7f21e95d18150

And the pypi source was not good for building this either, if I remember correctly (why would I have used the GitHub release, otherwise)

Let me take a look

tskaar commented on 2025-02-20 10:17 (UTC)

Checksum for v1.11.1.3 is out of date, newest one is: cce325cfa743c43025c8bd820ee17c580241221e6974e6ffa95f28ecc23a7ffeb957359cc68e6e4acac3bf8770ccad3351795abce9443fb714794dfc00a1f5f4

peippo commented on 2025-02-10 21:54 (UTC)

@aidanstewart05: this was an issue related to how GitHub’s archives of tagged commits are not necessarily stable (tag can be deleted and re-pushed). I had pushed a new PKGBUILD version after checking that the upstream code works

aidanstewart05 commented on 2025-02-10 20:36 (UTC) (edited on 2025-02-10 20:37 (UTC) by aidanstewart05)

A cleanBuild seemed to remedy the issue for me, but it could've been something else I did.

Neboer commented on 2025-01-24 05:02 (UTC)

This package failed to build. Checksum of the source is wrong.

AUR Explicit (1): python-ninja-1.11.1.3-2
Sync Make Dependency (2): python-hatch-fancy-pypi-readme-24.1.0-4, python-scikit-build-core-0.10.7-3
:: (1/1) Downloaded PKGBUILD: python-ninja
  1 python-ninja                             (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> None
  1 python-ninja                             (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> None
==> Making package: python-ninja 1.11.1.3-2 (Fri Jan 24 02:14:57 2025)
==> Retrieving sources...
  -> Downloading python-ninja-1.11.1.3.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

100  125k    0  125k    0     0   881k      0 --:--:-- --:--:-- --:--:--  881k
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with b2sums...
    python-ninja-1.11.1.3.tar.gz ... FAILED
==> ERROR: One or more files did not pass the validity check!
 -> error downloading sources: /home/archlinuxus/.cache/yay/python-ninja 
     context: exit status 1 


:: (1/1) Parsing SRCINFO: python-ninja
resolving dependencies...
looking for conflicting packages...

Packages (7) python-editables-0.5-5  python-hatchling-1.27.0-1  python-pathspec-0.12.1-3  python-pluggy-1.5.0-3  python-trove-classifiers-2025.1.7.14-1  python-hatch-fancy-pypi-readme-24.1.0-4  python-scikit-build-core-0.10.7-3

Total Download Size:   0.54 MiB
Total Installed Size:  2.94 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 python-scikit-build-core-0.10.7-3-any downloading...
 python-hatchling-1.27.0-1-any downloading...
 python-pathspec-0.12.1-3-any downloading...
 python-pluggy-1.5.0-3-any downloading...
 python-trove-classifiers-2025.1.7.14-1-any downloading...
 python-hatch-fancy-pypi-readme-24.1.0-4-any downloading...
 python-editables-0.5-5-any downloading...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Processing package changes...
installing python-pathspec...
installing python-scikit-build-core...
installing python-editables...
installing python-pluggy...
installing python-trove-classifiers...
installing python-hatchling...
installing python-hatch-fancy-pypi-readme...
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> Making package: python-ninja 1.11.1.3-2 (Fri Jan 24 02:14:59 2025)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found python-ninja-1.11.1.3.tar.gz
==> Validating source files with b2sums...
    python-ninja-1.11.1.3.tar.gz ... FAILED
==> ERROR: One or more files did not pass the validity check!
 -> error making: python-ninja-exit status 1
 -> Failed to install the following packages. Manual intervention is required:
python-ninja - exit status 1