841d9c7fc1
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
28 lines
833 B
Nix
28 lines
833 B
Nix
{ lib, buildPythonPackage, fetchPypi, packaging, pytest, setuptools-scm }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-snapshot";
|
|
version = "0.6.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "ee8e9af118ff55ed13bf8e8b520714c52665ae44f6228563a600a08d62839b54";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
buildInputs = [ pytest ];
|
|
|
|
propagatedBuildInputs = [ packaging ];
|
|
|
|
# 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 ];
|
|
};
|
|
}
|