1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchPypi
5, pytest
6, pytest-asyncio
7, pytestCheckHook
8, setuptools-scm
9}:
10
11buildPythonPackage rec {
12 pname = "pytest-mock";
13 version = "3.8.2";
14
15 disabled = pythonOlder "3.7";
16
17 format = "setuptools";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-d/A/RVQ5JVhwApXgWu0LEJaiDUpgpPPdzeWLDDHI/KI=";
22 };
23
24 nativeBuildInputs = [ setuptools-scm ];
25
26 buildInputs = [
27 pytest
28 ];
29
30 checkInputs = [
31 pytest-asyncio
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [ "pytest_mock" ];
36
37 meta = with lib; {
38 description = "Thin wrapper around the mock package for easier use with pytest";
39 homepage = "https://github.com/pytest-dev/pytest-mock";
40 changelog = "https://github.com/pytest-dev/pytest-mock/blob/v${version}/CHANGELOG.rst";
41 license = licenses.mit;
42 maintainers = with maintainers; [ dotlambda ];
43 };
44}