Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5}: 6 7buildPythonPackage rec { 8 pname = "pytest-raises"; 9 version = "0.11"; 10 11 src = fetchFromGitHub { 12 owner = "Lemmons"; 13 repo = pname; 14 rev = version; 15 sha256 = "0gbb4kml2qv7flp66i73mgb4qihdaybb6c96b5dw3mhydhymcsy2"; 16 }; 17 18 nativeCheckInputs = [ 19 pytestCheckHook 20 ]; 21 22 pythonImportsCheck = [ "pytest_raises" ]; 23 24 meta = with lib; { 25 description = "An implementation of pytest.raises as a pytest.mark fixture"; 26 homepage = "https://github.com/Lemmons/pytest-raises"; 27 license = with licenses; [ mit ]; 28 maintainers = with maintainers; [ fab ]; 29 }; 30}