13 buildPythonPackage rec {
14 pname = "pytest-mock";
18 disabled = pythonOlder "3.7";
21 inherit pname version;
22 hash = "sha256-MaQPA4wiytMih7tDkyBURR/1WD/wlLym9nXfL4vBpuk=";
39 disabledTests = lib.optionals (pythonAtLeast "3.11") [
40 # Regression in 3.11.7 and 3.12.1; https://github.com/pytest-dev/pytest-mock/issues/401
41 "test_failure_message_with_name"
42 "test_failure_message_with_no_name"
45 pythonImportsCheck = [ "pytest_mock" ];
48 description = "Thin wrapper around the mock package for easier use with pytest";
49 homepage = "https://github.com/pytest-dev/pytest-mock";
50 changelog = "https://github.com/pytest-dev/pytest-mock/blob/v${version}/CHANGELOG.rst";
51 license = licenses.mit;
52 maintainers = with maintainers; [ dotlambda ];