2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, setuptools_scm, mock }:
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "backports.unittest_mock";
|
2019-10-24 07:47:26 +01:00
|
|
|
version = "1.5";
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 07:47:26 +01:00
|
|
|
sha256 = "eff58e53de8fdeb27a1c87a9d57e7b91d15d1bc3854e85344b1a2e69f31ecda7";
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ mock ];
|
|
|
|
|
|
|
|
buildInputs = [ setuptools_scm ];
|
|
|
|
|
2020-12-23 19:53:28 +00:00
|
|
|
# does not contain tests
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "backports.unittest_mock" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-09-05 10:16:41 +01:00
|
|
|
description = "Provides a function install() which makes the mock module";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/jaraco/backports.unittest_mock";
|
2017-09-05 10:16:41 +01:00
|
|
|
license = licenses.mit;
|
2020-12-23 19:53:28 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
}
|