5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
37 lines
779 B
Nix
37 lines
779 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, flit
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-raisin";
|
|
version = "0.4";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wimglenn";
|
|
repo = "pytest-raisin";
|
|
rev = "v${version}";
|
|
hash = "sha256-BI0SWy671DYDTPH4iO811ku6SzpH4ho7eQFUA8PmxW8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
flit
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
pytest
|
|
];
|
|
|
|
# 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 ];
|
|
};
|
|
}
|