14 buildPythonPackage rec {
15 pname = "pytest-mock";
19 disabled = pythonOlder "3.7";
22 inherit pname version;
23 hash = "sha256-JxklWh7+zq28BW1r8989HFAVUw+0DPNHwPmvrIhBC9A=";
31 buildInputs = [ pytest ];
38 disabledTests = lib.optionals (pythonAtLeast "3.11") [
39 # Regression in 3.11.7 and 3.12.1; https://github.com/pytest-dev/pytest-mock/issues/401
40 "test_failure_message_with_name"
41 "test_failure_message_with_no_name"
44 pythonImportsCheck = [ "pytest_mock" ];
47 description = "Thin wrapper around the mock package for easier use with pytest";
48 homepage = "https://github.com/pytest-dev/pytest-mock";
49 changelog = "https://github.com/pytest-dev/pytest-mock/blob/v${version}/CHANGELOG.rst";
50 license = licenses.mit;
51 maintainers = with maintainers; [ dotlambda ];