From 2a36a45dd98f8897a081b9403709ced210c5bb90 Mon Sep 17 00:00:00 2001 From: George Huebner Date: Wed, 4 Feb 2026 22:13:50 -0600 Subject: [PATCH 1/3] python3Packages.pytest-insta: init at 0.3.0 --- .../python-modules/pytest-insta/default.nix | 40 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 42 insertions(+) create mode 100644 pkgs/development/python-modules/pytest-insta/default.nix diff --git a/pkgs/development/python-modules/pytest-insta/default.nix b/pkgs/development/python-modules/pytest-insta/default.nix new file mode 100644 index 000000000000..7367bf06824f --- /dev/null +++ b/pkgs/development/python-modules/pytest-insta/default.nix @@ -0,0 +1,40 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest, + pytestCheckHook, + wrapt, + poetry-core, +}: + +buildPythonPackage rec { + pname = "pytest-insta"; + version = "0.3.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "vberlier"; + repo = pname; + tag = "v${version}"; + hash = "sha256-kXsKM84yXdGE89KxUtxT2mINmS2lXkuEqB6a9oXZqGo="; + }; + + build-system = [ poetry-core ]; + + 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${src.tag}/CHANGELOG.md"; + license = lib.licenses.mit; + maintainers = [ ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 07f3805cb669..c6a4380896a3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -15203,6 +15203,8 @@ self: super: with self; { pytest-image-diff = callPackage ../development/python-modules/pytest-image-diff { }; + pytest-insta = callPackage ../development/python-modules/pytest-insta { }; + pytest-instafail = callPackage ../development/python-modules/pytest-instafail { }; pytest-integration = callPackage ../development/python-modules/pytest-integration { }; From 1c9c3372865e096815f14a05d62d279d0b3c76c5 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 7 Mar 2026 09:52:35 +0100 Subject: [PATCH 2/3] python3Packages.pytest-insta: 0.3.0 -> 0.4.1 Changelog: https://github.com/vberlier/pytest-insta/blob/vv0.4.1/CHANGELOG.md --- .../python-modules/pytest-insta/default.nix | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/pytest-insta/default.nix b/pkgs/development/python-modules/pytest-insta/default.nix index 7367bf06824f..f67ebd1d0a07 100644 --- a/pkgs/development/python-modules/pytest-insta/default.nix +++ b/pkgs/development/python-modules/pytest-insta/default.nix @@ -4,23 +4,30 @@ fetchFromGitHub, pytest, pytestCheckHook, + uv-build, wrapt, - poetry-core, }: buildPythonPackage rec { pname = "pytest-insta"; - version = "0.3.0"; + version = "0.4.1"; pyproject = true; src = fetchFromGitHub { owner = "vberlier"; repo = pname; tag = "v${version}"; - hash = "sha256-kXsKM84yXdGE89KxUtxT2mINmS2lXkuEqB6a9oXZqGo="; + hash = "sha256-zOhWDaCGkE/Ke2MLRyttDH85t+I9kfBZZwVDRN1sprs="; }; - build-system = [ poetry-core ]; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail "uv_build>=0.9.8,<0.10.0" "uv_build" + ''; + + pythonRelaxDeps = [ "wrapt" ]; + + build-system = [ uv-build ]; buildInputs = [ pytest ]; From 1c531b5ca35ea1408e71661527919aa0f857d0b6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 7 Mar 2026 09:53:47 +0100 Subject: [PATCH 3/3] python3Packages.pytest-insta: migrate to finalAttrs --- pkgs/development/python-modules/pytest-insta/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/pytest-insta/default.nix b/pkgs/development/python-modules/pytest-insta/default.nix index f67ebd1d0a07..d5915d05c96e 100644 --- a/pkgs/development/python-modules/pytest-insta/default.nix +++ b/pkgs/development/python-modules/pytest-insta/default.nix @@ -8,7 +8,7 @@ wrapt, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: rec { pname = "pytest-insta"; version = "0.4.1"; pyproject = true; @@ -16,7 +16,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "vberlier"; repo = pname; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-zOhWDaCGkE/Ke2MLRyttDH85t+I9kfBZZwVDRN1sprs="; }; @@ -40,8 +40,8 @@ buildPythonPackage rec { meta = { description = "Pytest plugin for snapshot testing"; homepage = "https://github.com/vberlier/pytest-insta"; - changelog = "https://github.com/vberlier/pytest-insta/blob/v${src.tag}/CHANGELOG.md"; + changelog = "https://github.com/vberlier/pytest-insta/blob/v${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = [ ]; }; -} +})