2021-01-09 10:05:03 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, packaging, pytest, setuptools-scm }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-snapshot";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "0.8.0";
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-19 01:06:50 +00:00
|
|
|
sha256 = "cf84c88c3e0b4ae08ae797d9ccdc32715b64dd68b2da40f575db56956ed23326";
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
buildInputs = [ pytest ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ packaging ];
|
2021-01-09 10:05:03 +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 ];
|
|
|
|
};
|
|
|
|
}
|