1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytest, 6 pytest-asyncio, 7 pytestCheckHook, 8 setuptools, 9 setuptools-scm, 10}: 11 12buildPythonPackage rec { 13 pname = "pytest-mock"; 14 version = "3.14.1"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "pytest-dev"; 19 repo = "pytest-mock"; 20 tag = "v${version}"; 21 hash = "sha256-aOa/MQAgQePX/NivQ6G37r70sZnqBA+y+GXvPVBxmvs="; 22 }; 23 24 nativeBuildInputs = [ 25 setuptools 26 setuptools-scm 27 ]; 28 29 buildInputs = [ pytest ]; 30 31 nativeCheckInputs = [ 32 pytest-asyncio 33 pytestCheckHook 34 ]; 35 36 pythonImportsCheck = [ "pytest_mock" ]; 37 38 meta = with lib; { 39 description = "Thin wrapper around the mock package for easier use with pytest"; 40 homepage = "https://github.com/pytest-dev/pytest-mock"; 41 changelog = "https://github.com/pytest-dev/pytest-mock/blob/${src.tag}/CHANGELOG.rst"; 42 license = licenses.mit; 43 maintainers = with maintainers; [ dotlambda ]; 44 }; 45}