2021-01-04 09:49:41 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, packaging, pytest, setuptools-scm }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-snapshot";
|
2021-02-02 21:45:16 +00:00
|
|
|
version = "0.5.0";
|
2021-01-04 09:49:41 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-02 21:45:16 +00:00
|
|
|
sha256 = "77d736073598a6224825eef8b8e0c760812a61410af2180cb070b27eb79f257d";
|
2021-01-04 09:49:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
|
2021-03-12 22:20:19 +00:00
|
|
|
buildInputs = [ pytest ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ packaging ];
|
2021-01-04 09:49:41 +00:00
|
|
|
|
|
|
|
# pypi does not contain tests and GitHub archive is not supported because setuptools-scm can't detect the version
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pytest_snapshot" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A plugin to enable snapshot testing with pytest";
|
|
|
|
homepage = "https://github.com/joseph-roitman/pytest-snapshot/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
}
|