python3Packages.pytest-mock: 3.3.1 -> 3.5.1

This commit is contained in:
Fabian Affolter 2021-02-08 17:26:49 +01:00 committed by Frederik Rietdijk
parent f42250c70b
commit 9681d24e14

View File

@ -1,41 +1,33 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, isPy3k
, pytest
, mock
, pytest-asyncio
, pytestCheckHook
, setuptools_scm
}:
buildPythonPackage rec {
pname = "pytest-mock";
version = "3.3.1";
version = "3.5.1";
src = fetchPypi {
inherit pname version;
sha256 = "a4d6d37329e4a893e77d9ffa89e838dd2b45d5dc099984cf03c703ac8411bb82";
sha256 = "1z6r3n78bilfzkbxj083p0ib04ia1bhfgnj2qq9x6q4mmykapqm1";
};
propagatedBuildInputs = lib.optional (!isPy3k) mock;
nativeBuildInputs = [
setuptools_scm
];
nativeBuildInputs = [ setuptools_scm ];
checkInputs = [
pytest
pytest-asyncio
pytestCheckHook
];
# ignore test which only works with pytest5 output structure
checkPhase = ''
pytest -k 'not detailed_introspection_async'
'';
pythonImportsCheck = [ "pytest_mock" ];
meta = with lib; {
description = "Thin-wrapper around the mock package for easier use with py.test.";
homepage = "https://github.com/pytest-dev/pytest-mock";
license = licenses.mit;
description = "Thin-wrapper around the mock package for easier use with pytest";
homepage = "https://github.com/pytest-dev/pytest-mock";
license = with licenses; [ mit ];
maintainers = with maintainers; [ nand0p ];
};
}