depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-raisin/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

37 lines
786 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, flit-core
, pytest
}:
buildPythonPackage rec {
pname = "pytest-raisin";
version = "0.4";
format = "flit";
src = fetchFromGitHub {
owner = "wimglenn";
repo = "pytest-raisin";
rev = "v${version}";
sha256 = "sha256-BI0SWy671DYDTPH4iO811ku6SzpH4ho7eQFUA8PmxW8=";
};
nativeBuildInputs = [
flit-core
];
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 ];
};
}