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