1{ lib
2, buildPythonPackage
3, fetchPypi
4, fetchpatch
5, isPy3k
6, pytest
7, mock
8, setuptools_scm
9}:
10
11buildPythonPackage rec {
12 pname = "pytest-mock";
13 version = "1.13.0";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "e24a911ec96773022ebcc7030059b57cd3480b56d4f5d19b7c370ec635e6aed5";
18 };
19
20 propagatedBuildInputs = lib.optional (!isPy3k) mock;
21
22 nativeBuildInputs = [
23 setuptools_scm
24 ];
25
26 checkInputs = [
27 pytest
28 ];
29
30 checkPhase = ''
31 pytest
32 '';
33
34 meta = with lib; {
35 description = "Thin-wrapper around the mock package for easier use with py.test.";
36 homepage = https://github.com/pytest-dev/pytest-mock;
37 license = licenses.mit;
38 maintainers = with maintainers; [ nand0p ];
39 };
40}