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