mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
python3Packages.pytest-mock: 3.14.0 -> 3.14.1
Diff: https://github.com/pytest-dev/pytest-mock/compare/refs/tags/v3.14.0...refs/tags/v3.14.1 Changelog: https://github.com/pytest-dev/pytest-mock/blob/v3.14.1/CHANGELOG.rst
This commit is contained in:
parent
aeccbc779a
commit
73aac165ad
1 changed files with 8 additions and 16 deletions
|
@ -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 ];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue