2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
flit,
|
|
|
|
pytest,
|
2021-12-26 17:43:05 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-raisin";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "0.4";
|
2023-10-09 19:29:22 +00:00
|
|
|
format = "pyproject";
|
2021-12-26 17:43:05 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wimglenn";
|
|
|
|
repo = "pytest-raisin";
|
|
|
|
rev = "v${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-BI0SWy671DYDTPH4iO811ku6SzpH4ho7eQFUA8PmxW8=";
|
2021-12-26 17:43:05 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ flit ];
|
2021-12-26 17:43:05 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ pytest ];
|
2021-12-26 17:43:05 +00:00
|
|
|
|
|
|
|
# tests cause circular pytest-raisin already registered with pytest error
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Plugin enabling the use of exception instances with pytest.raises context";
|
|
|
|
homepage = "https://github.com/wimglenn/pytest-raisin";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ aadibajpai ];
|
|
|
|
};
|
|
|
|
}
|