depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-raises/default.nix
Default email 849ee4d900 Project import generated by Copybara.
GitOrigin-RevId: 9e377a6ce42dccd9b624ae4ce8f978dc892ba0e2
2021-04-08 18:26:57 +02:00

30 lines
641 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pytest-raises";
version = "0.11";
src = fetchFromGitHub {
owner = "Lemmons";
repo = pname;
rev = version;
sha256 = "0gbb4kml2qv7flp66i73mgb4qihdaybb6c96b5dw3mhydhymcsy2";
};
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "pytest_raises" ];
meta = with lib; {
description = "An implementation of pytest.raises as a pytest.mark fixture";
homepage = "https://github.com/Lemmons/pytest-raises";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}