depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-snapshot/default.nix
Default email 792b51d22f Project import generated by Copybara.
GitOrigin-RevId: d5f237872975e6fb6f76eef1368b5634ffcd266f
2022-02-20 05:27:41 +00:00

50 lines
904 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, packaging
, pytest
, setuptools-scm
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pytest-snapshot";
version = "0.8.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "joseph-roitman";
repo = pname;
rev = "v${version}";
sha256 = "sha256-ymB9h3Mc6GSMRsxIh6uuf111qLvIkNAnFsxR6O2SF7s=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
];
buildInputs = [
pytest
];
propagatedBuildInputs = [
packaging
];
checkInputs = [
pytestCheckHook
];
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 ];
};
}