libfmvoice: 0-unstable-2024-11-08 -> 0-unstable-2024-12-11 (#364919)
[NixPkgs.git] / pkgs / development / python-modules / pytest-raises / default.nix
blob16d4c681f21ce1538c77c14eeb553b6ea8f1a46c
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytest,
6   pytestCheckHook,
7   pythonOlder,
8 }:
10 buildPythonPackage rec {
11   pname = "pytest-raises";
12   version = "0.11";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "Lemmons";
19     repo = pname;
20     rev = "refs/tags/${version}";
21     hash = "sha256-wmtWPWwe1sFbWSYxs5ZXDUZM1qvjRGMudWdjQeskaz0=";
22   };
24   buildInputs = [ pytest ];
26   nativeCheckInputs = [ pytestCheckHook ];
28   pythonImportsCheck = [ "pytest_raises" ];
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   ];
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   };