1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytest-asyncio
5, pytestCheckHook
6, setuptools_scm
7}:
8
9buildPythonPackage rec {
10 pname = "pytest-mock";
11 version = "3.5.1";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "1z6r3n78bilfzkbxj083p0ib04ia1bhfgnj2qq9x6q4mmykapqm1";
16 };
17
18 nativeBuildInputs = [ setuptools_scm ];
19
20 checkInputs = [
21 pytest-asyncio
22 pytestCheckHook
23 ];
24
25 pythonImportsCheck = [ "pytest_mock" ];
26
27 meta = with lib; {
28 description = "Thin-wrapper around the mock package for easier use with pytest";
29 homepage = "https://github.com/pytest-dev/pytest-mock";
30 license = with licenses; [ mit ];
31 maintainers = with maintainers; [ ];
32 };
33}