1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytest, 6 pytestCheckHook, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "pytest-raises"; 12 version = "0.11"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "Lemmons"; 19 repo = "pytest-raises"; 20 tag = version; 21 hash = "sha256-wmtWPWwe1sFbWSYxs5ZXDUZM1qvjRGMudWdjQeskaz0="; 22 }; 23 24 buildInputs = [ pytest ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "pytest_raises" ]; 29 30 disabledTests = [ 31 # Failed: nomatch: '*::test_pytest_mark_raises_unexpected_exception FAILED*' 32 # https://github.com/Lemmons/pytest-raises/issues/30 33 "test_pytest_mark_raises_unexpected_exception" 34 "test_pytest_mark_raises_unexpected_match" 35 "test_pytest_mark_raises_parametrize" 36 ]; 37 38 meta = with lib; { 39 description = "Implementation of pytest.raises as a pytest.mark fixture"; 40 homepage = "https://github.com/Lemmons/pytest-raises"; 41 license = with licenses; [ mit ]; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}