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