parent
22be75cbbe
commit
abe24e99b5
@ -0,0 +1,39 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchPypi |
||||
, flit-core |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "exceptiongroup"; |
||||
version = "1.0.0rc2"; |
||||
format = "flit"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchPypi { |
||||
inherit pname version; |
||||
hash = "sha256-TSVLBSMb7R1DB5vc/g8dZsCrR4Pmd3oyk1X5t43jrYM="; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ |
||||
flit-core |
||||
]; |
||||
|
||||
# Tests are only in the source available but tagged releases |
||||
# are incomplete as files are generated during the release process |
||||
doCheck = false; |
||||
|
||||
pythonImportsCheck = [ |
||||
"exceptiongroup" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Backport of PEP 654 (exception groups)"; |
||||
homepage = "https://github.com/agronholm/exceptiongroup"; |
||||
license = with licenses; [ mit ]; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
Loading…
Reference in new issue