1{ lib, buildPythonPackage, fetchPypi, packaging, pytest, setuptools-scm }:
2
3buildPythonPackage rec {
4 pname = "pytest-snapshot";
5 version = "0.5.0";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "77d736073598a6224825eef8b8e0c760812a61410af2180cb070b27eb79f257d";
10 };
11
12 nativeBuildInputs = [ setuptools-scm ];
13
14 buildInputs = [ pytest ];
15
16 propagatedBuildInputs = [ packaging ];
17
18 # pypi does not contain tests and GitHub archive is not supported because setuptools-scm can't detect the version
19 doCheck = false;
20 pythonImportsCheck = [ "pytest_snapshot" ];
21
22 meta = with lib; {
23 description = "A plugin to enable snapshot testing with pytest";
24 homepage = "https://github.com/joseph-roitman/pytest-snapshot/";
25 license = licenses.mit;
26 maintainers = with maintainers; [ SuperSandro2000 ];
27 };
28}