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
1 changed files with 11 additions and 19 deletions
pkgs/development/python-modules/pytest-mock

View File

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