1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit,
6 pytest,
7}:
8
9buildPythonPackage rec {
10 pname = "pytest-raisin";
11 version = "0.4";
12 format = "pyproject";
13
14 src = fetchFromGitHub {
15 owner = "wimglenn";
16 repo = "pytest-raisin";
17 rev = "v${version}";
18 hash = "sha256-BI0SWy671DYDTPH4iO811ku6SzpH4ho7eQFUA8PmxW8=";
19 };
20
21 nativeBuildInputs = [ flit ];
22
23 propagatedBuildInputs = [ pytest ];
24
25 # tests cause circular pytest-raisin already registered with pytest error
26 doCheck = false;
27
28 meta = with lib; {
29 description = "Plugin enabling the use of exception instances with pytest.raises context";
30 homepage = "https://github.com/wimglenn/pytest-raisin";
31 license = licenses.mit;
32 maintainers = with maintainers; [ aadibajpai ];
33 };
34}