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,
buildPythonPackage,
pythonAtLeast,
pythonOlder,
fetchPypi,
fetchFromGitHub,
pytest,
pytest-asyncio,
pytestCheckHook,
@ -13,14 +11,14 @@
buildPythonPackage rec {
pname = "pytest-mock";
version = "3.14.0";
version = "3.14.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-JxklWh7+zq28BW1r8989HFAVUw+0DPNHwPmvrIhBC9A=";
src = fetchFromGitHub {
owner = "pytest-dev";
repo = "pytest-mock";
tag = "v${version}";
hash = "sha256-aOa/MQAgQePX/NivQ6G37r70sZnqBA+y+GXvPVBxmvs=";
};
nativeBuildInputs = [
@ -35,18 +33,12 @@ buildPythonPackage rec {
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" ];
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/v${version}/CHANGELOG.rst";
changelog = "https://github.com/pytest-dev/pytest-mock/blob/${src.tag}/CHANGELOG.rst";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};