mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 03:44:07 +01:00
47 lines
1,009 B
Nix
47 lines
1,009 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytest,
|
|
pytestCheckHook,
|
|
uv-build,
|
|
wrapt,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: rec {
|
|
pname = "pytest-insta";
|
|
version = "0.4.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vberlier";
|
|
repo = pname;
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-zOhWDaCGkE/Ke2MLRyttDH85t+I9kfBZZwVDRN1sprs=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail "uv_build>=0.9.8,<0.10.0" "uv_build"
|
|
'';
|
|
|
|
pythonRelaxDeps = [ "wrapt" ];
|
|
|
|
build-system = [ uv-build ];
|
|
|
|
buildInputs = [ pytest ];
|
|
|
|
dependencies = [ wrapt ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "pytest_insta" ];
|
|
|
|
meta = {
|
|
description = "Pytest plugin for snapshot testing";
|
|
homepage = "https://github.com/vberlier/pytest-insta";
|
|
changelog = "https://github.com/vberlier/pytest-insta/blob/v${finalAttrs.src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
})
|