Package Details: python-pytest-http-snapshot 0.1.9-1

Git Clone URL: https://aur.archlinux.org/python-pytest-http-snapshot.git (read-only, click to copy)
Package Base: python-pytest-http-snapshot
Description: Pytest plugin that captures and snapshots HTTP roundtrips. Supports httpx and requests.
Upstream URL: https://github.com/karpetrosyan/http-snapshot
Licenses: MIT
Submitter: Auerhuhn
Maintainer: Auerhuhn
Last Packager: Auerhuhn
Votes: 1
Popularity: 0.21
First Submitted: 2026-04-27 11:57 (UTC)
Last Updated: 2026-04-27 11:57 (UTC)

Dependencies (13)

Required by (1)

Sources (1)

Latest Comments

vltr commented on 2026-06-26 15:57 (UTC)

the source package (of http-snapshot) contains a .python-version file that could not work properly if you have uv or pyenv in your environment, as it's hard set to 3.9 - see here.

my solution for it to build properly was to change the PKGBUILD build() function to simply remove this file:

build() {
  cd "${_gitpkgname}-${pkgver}"
  echo >&2 'Building wheel'
  rm -rf .python-version
  python -m build --wheel --no-isolation
}

the "annoying" user interaction actually comes from the inline-snapshot package. to fix that in an active tty console, change the check() function to automatically answer (n in this case) when running pytest:

check() {
  cd "${_gitpkgname}-${pkgver}"
  yes n | pytest
}

I hope that helps.

Auerhuhn commented on 2026-04-29 07:18 (UTC)

@gwuensch Can you reproduce this behavior in a clean chroot?
I’d be happy to try fixing this but that’s difficult unless I can reproduce.

gwuensch commented on 2026-04-29 03:13 (UTC)

Expects a user interaction during the check process:

Do you want to trim these snapshots? [y/n] (n):

It looks like the default behavior can be changed, though I don't know what the appropriate option would be.