1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonOlder,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "mock";
11 version = "5.2.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-TkYOgYYptLFz8y0IvzDTr4Ejr7uOBLtXB6H9R5nlA/A=";
19 };
20
21 nativeCheckInputs = [ pytestCheckHook ];
22
23 pythonImportsCheck = [ "mock" ];
24
25 meta = with lib; {
26 description = "Rolling backport of unittest.mock for all Pythons";
27 homepage = "https://github.com/testing-cabal/mock";
28 changelog = "https://github.com/testing-cabal/mock/blob/${version}/CHANGELOG.rst";
29 license = licenses.bsd2;
30 maintainers = [ ];
31 };
32}