1{ lib, buildPythonPackage, fetchPypi, setuptools-scm, mock }:
2
3buildPythonPackage rec {
4 pname = "backports.unittest_mock";
5 version = "1.5";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "eff58e53de8fdeb27a1c87a9d57e7b91d15d1bc3854e85344b1a2e69f31ecda7";
10 };
11
12 propagatedBuildInputs = [ mock ];
13
14 buildInputs = [ setuptools-scm ];
15
16 # does not contain tests
17 doCheck = false;
18 pythonImportsCheck = [ "backports.unittest_mock" ];
19
20 meta = with lib; {
21 description = "Provides a function install() which makes the mock module";
22 homepage = "https://github.com/jaraco/backports.unittest_mock";
23 license = licenses.mit;
24 maintainers = with maintainers; [ SuperSandro2000 ];
25 };
26}