1{ lib 2, buildPythonPackage 3, fetchPypi 4, flit-core 5, pytestCheckHook 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "exceptiongroup"; 11 version = "1.0.0"; 12 format = "flit"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-r/ur8T+26YmIw42cVlDnAVaf48HeMjPPthxfM3dGkK0="; 19 }; 20 21 nativeBuildInputs = [ 22 flit-core 23 ]; 24 25 # Tests are only in the source available but tagged releases 26 # are incomplete as files are generated during the release process 27 doCheck = false; 28 29 pythonImportsCheck = [ 30 "exceptiongroup" 31 ]; 32 33 meta = with lib; { 34 description = "Backport of PEP 654 (exception groups)"; 35 homepage = "https://github.com/agronholm/exceptiongroup"; 36 license = with licenses; [ mit ]; 37 maintainers = with maintainers; [ fab ]; 38 }; 39}