python3Packages.pytest-mock: 3.14.0 -> 3.14.1 (#411179)

This commit is contained in:
dotlambda 2025-06-08 13:21:54 -07:00 committed by GitHub
commit 9a7f95edaf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,9 +1,7 @@
{ {
lib, lib,
buildPythonPackage, buildPythonPackage,
pythonAtLeast, fetchFromGitHub,
pythonOlder,
fetchPypi,
pytest, pytest,
pytest-asyncio, pytest-asyncio,
pytestCheckHook, pytestCheckHook,
@ -13,14 +11,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pytest-mock"; pname = "pytest-mock";
version = "3.14.0"; version = "3.14.1";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.7"; src = fetchFromGitHub {
owner = "pytest-dev";
src = fetchPypi { repo = "pytest-mock";
inherit pname version; tag = "v${version}";
hash = "sha256-JxklWh7+zq28BW1r8989HFAVUw+0DPNHwPmvrIhBC9A="; hash = "sha256-aOa/MQAgQePX/NivQ6G37r70sZnqBA+y+GXvPVBxmvs=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -35,18 +33,12 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
disabledTests = lib.optionals (pythonAtLeast "3.11") [
# Regression in 3.11.7 and 3.12.1; https://github.com/pytest-dev/pytest-mock/issues/401
"test_failure_message_with_name"
"test_failure_message_with_no_name"
];
pythonImportsCheck = [ "pytest_mock" ]; pythonImportsCheck = [ "pytest_mock" ];
meta = with lib; { meta = with lib; {
description = "Thin wrapper around the mock package for easier use with pytest"; description = "Thin wrapper around the mock package for easier use with pytest";
homepage = "https://github.com/pytest-dev/pytest-mock"; homepage = "https://github.com/pytest-dev/pytest-mock";
changelog = "https://github.com/pytest-dev/pytest-mock/blob/v${version}/CHANGELOG.rst"; changelog = "https://github.com/pytest-dev/pytest-mock/blob/${src.tag}/CHANGELOG.rst";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ dotlambda ]; maintainers = with maintainers; [ dotlambda ];
}; };