2019-07-16 22:39:20 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-02-08 16:26:49 +00:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
2019-07-16 22:39:20 +01:00
|
|
|
, setuptools_scm
|
|
|
|
}:
|
2018-02-12 11:37:41 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-mock";
|
2021-02-08 16:26:49 +00:00
|
|
|
version = "3.5.1";
|
2019-02-14 07:37:27 +00:00
|
|
|
|
2018-02-12 11:37:41 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-08 16:26:49 +00:00
|
|
|
sha256 = "1z6r3n78bilfzkbxj083p0ib04ia1bhfgnj2qq9x6q4mmykapqm1";
|
2018-02-12 11:37:41 +00:00
|
|
|
};
|
|
|
|
|
2021-02-08 16:26:49 +00:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
2019-07-16 22:39:20 +01:00
|
|
|
|
|
|
|
checkInputs = [
|
2021-02-08 16:26:49 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
2019-07-16 22:39:20 +01:00
|
|
|
];
|
2018-02-12 11:37:41 +00:00
|
|
|
|
2021-02-08 16:26:49 +00:00
|
|
|
pythonImportsCheck = [ "pytest_mock" ];
|
2018-02-12 11:37:41 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-02-08 16:26:49 +00:00
|
|
|
description = "Thin-wrapper around the mock package for easier use with pytest";
|
|
|
|
homepage = "https://github.com/pytest-dev/pytest-mock";
|
|
|
|
license = with licenses; [ mit ];
|
2018-02-12 11:37:41 +00:00
|
|
|
maintainers = with maintainers; [ nand0p ];
|
|
|
|
};
|
|
|
|
}
|