python2Packages.mock: drop

This commit is contained in:
Sigmanificient
2026-01-15 01:38:29 +01:00
parent d6648d8493
commit c02e1cfb21
3 changed files with 1 additions and 48 deletions
@@ -1,45 +0,0 @@
{
lib,
buildPythonPackage,
fetchPypi,
isPy27,
funcsigs,
six,
pbr,
unittestCheckHook,
}:
buildPythonPackage rec {
pname = "mock";
version = "3.0.5";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "83657d894c90d5681d62155c82bda9c1187827525880eda8ff5df4ec813437c3";
};
propagatedBuildInputs = [
six
pbr
]
++ lib.optionals isPy27 [ funcsigs ];
# On PyPy for Python 2.7 in particular, Mock's tests have a known failure.
# Mock upstream has a decoration to disable the failing test and make
# everything pass, but it is not yet released. The commit:
# https://github.com/testing-cabal/mock/commit/73bfd51b7185#diff-354f30a63fb0907d4ad57269548329e3L12
#doCheck = !(python.isPyPy && python.isPy27);
doCheck = false; # Infinite recursion pytest
nativeCheckInputs = [
unittestCheckHook
];
meta = {
description = "Mock objects for Python";
homepage = "http://python-mock.sourceforge.net/";
license = lib.licenses.bsd2;
};
}
@@ -3,7 +3,6 @@
buildPythonPackage,
bootstrapped-pip,
fetchFromGitHub,
mock,
scripttest,
virtualenv,
pretend,
@@ -29,7 +28,6 @@ buildPythonPackage rec {
pipInstallFlags = [ "--ignore-installed" ];
nativeCheckInputs = [
mock
scripttest
virtualenv
pretend