{ lib, buildPythonPackage, fetchFromGitHub, pytest, pytest-asyncio, pytestCheckHook, setuptools, setuptools-scm, }: buildPythonPackage rec { pname = "pytest-mock"; version = "3.14.1"; pyproject = true; src = fetchFromGitHub { owner = "pytest-dev"; repo = "pytest-mock"; tag = "v${version}"; hash = "sha256-aOa/MQAgQePX/NivQ6G37r70sZnqBA+y+GXvPVBxmvs="; }; nativeBuildInputs = [ setuptools setuptools-scm ]; buildInputs = [ pytest ]; nativeCheckInputs = [ pytest-asyncio pytestCheckHook ]; pythonImportsCheck = [ "pytest_mock" ]; meta = with lib; { description = "Thin wrapper around the mock package for easier use with pytest"; homepage = "https://github.com/pytest-dev/pytest-mock"; changelog = "https://github.com/pytest-dev/pytest-mock/blob/${src.tag}/CHANGELOG.rst"; license = licenses.mit; maintainers = with maintainers; [ dotlambda ]; }; }