2019-11-21 01:53:28 +00:00
|
|
|
{ lib
|
2018-10-16 22:15:17 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-03-29 22:13:51 +00:00
|
|
|
, pythonOlder
|
2023-07-17 04:20:00 +00:00
|
|
|
, pytestCheckHook
|
2018-10-16 22:15:17 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mock";
|
2023-07-17 04:20:00 +00:00
|
|
|
version = "5.1.0";
|
2022-03-29 22:13:51 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2018-10-16 22:15:17 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-07-17 04:20:00 +00:00
|
|
|
sha256 = "sha256-Xpaq1czaRxjgointlLICTfdcwtVVdbpXYtMfV2e4dn0=";
|
2018-10-16 22:15:17 +00:00
|
|
|
};
|
|
|
|
|
2023-07-17 04:20:00 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
2022-03-29 22:13:51 +00:00
|
|
|
];
|
2019-02-04 08:18:17 +00:00
|
|
|
|
2023-07-17 04:20:00 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"mock"
|
2020-05-09 11:15:43 +00:00
|
|
|
];
|
|
|
|
|
2019-11-21 01:53:28 +00:00
|
|
|
meta = with lib; {
|
2023-07-17 04:20:00 +00:00
|
|
|
description = "Rolling backport of unittest.mock for all Pythons";
|
2022-03-29 22:13:51 +00:00
|
|
|
homepage = "https://github.com/testing-cabal/mock";
|
2023-07-17 04:20:00 +00:00
|
|
|
changelog = "https://github.com/testing-cabal/mock/blob/${version}/CHANGELOG.rst";
|
2019-11-21 01:53:28 +00:00
|
|
|
license = licenses.bsd2;
|
2023-07-17 04:20:00 +00:00
|
|
|
maintainers = [ ];
|
2018-10-16 22:15:17 +00:00
|
|
|
};
|
|
|
|
}
|