1{ lib, buildPythonPackage, fetchPypi, packaging, pytest, setuptools-scm }: 2 3buildPythonPackage rec { 4 pname = "pytest-snapshot"; 5 version = "0.7.0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "427b5ab088b25a1c8b63ce99725040664c840ff1f5a3891252723cce972897f9"; 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}