2019-07-16 17:39:20 -04:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-02-09 23:57:13 +00:00
|
|
|
, pytest
|
2021-02-08 17:26:49 +01:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
2021-06-03 12:09:11 +02:00
|
|
|
, setuptools-scm
|
2019-07-16 17:39:20 -04:00
|
|
|
}:
|
2018-02-12 12:37:41 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-mock";
|
2022-02-09 23:57:13 +00:00
|
|
|
version = "3.7.0";
|
2019-02-14 08:37:27 +01:00
|
|
|
|
2018-02-12 12:37:41 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-02-09 23:57:13 +00:00
|
|
|
hash = "sha256-URK9ksyfGG7pbhqS78hJaepJSTnDrq05xQ9CHEzGlTQ=";
|
2018-02-12 12:37:41 +01:00
|
|
|
};
|
|
|
|
|
2021-06-03 12:09:11 +02:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2019-07-16 17:39:20 -04:00
|
|
|
|
2022-02-09 23:57:13 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
2019-07-16 17:39:20 -04:00
|
|
|
checkInputs = [
|
2021-02-08 17:26:49 +01:00
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
2019-07-16 17:39:20 -04:00
|
|
|
];
|
2018-02-12 12:37:41 +01:00
|
|
|
|
2022-01-13 21:13:46 -08:00
|
|
|
disabledTests = [
|
|
|
|
# output of pytest has changed
|
|
|
|
"test_used_with_"
|
|
|
|
"test_plain_stopall"
|
|
|
|
];
|
|
|
|
|
2021-02-08 17:26:49 +01:00
|
|
|
pythonImportsCheck = [ "pytest_mock" ];
|
2018-02-12 12:37:41 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-02-08 17:26:49 +01: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 ];
|
2022-02-09 23:57:13 +00:00
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2018-02-12 12:37:41 +01:00
|
|
|
};
|
|
|
|
}
|