python312Packages.exceptiongroup: refactor

This commit is contained in:
Fabian Affolter
2024-08-17 01:04:42 +02:00
parent d4a7a4d0e0
commit 31a6e1387f
@@ -4,30 +4,30 @@
fetchFromGitHub,
flit-scm,
pytestCheckHook,
pythonOlder,
pythonAtLeast,
pythonOlder,
}:
buildPythonPackage rec {
pname = "exceptiongroup";
version = "1.2.1";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "agronholm";
repo = "exceptiongroup";
rev = version;
rev = "refs/tags/${version}";
hash = "sha256-87HmZsbsoV7QPHux50sYsFY2RaIc3627dH3WAwqXfQU=";
};
nativeBuildInputs = [ flit-scm ];
doCheck = pythonAtLeast "3.11"; # infinite recursion with pytest
nativeCheckInputs = [ pytestCheckHook ];
doCheck = pythonAtLeast "3.11"; # infinite recursion with pytest
pythonImportsCheck = [ "exceptiongroup" ];
meta = with lib; {