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 { };