depot/third_party/nixpkgs/pkgs/development/python-modules/exceptiongroup/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

40 lines
939 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
flit-scm,
pytestCheckHook,
pythonOlder,
pythonAtLeast,
}:
buildPythonPackage rec {
pname = "exceptiongroup";
version = "1.2.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "agronholm";
repo = "exceptiongroup";
rev = version;
hash = "sha256-87HmZsbsoV7QPHux50sYsFY2RaIc3627dH3WAwqXfQU=";
};
nativeBuildInputs = [ flit-scm ];
doCheck = pythonAtLeast "3.11"; # infinite recursion with pytest
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "exceptiongroup" ];
meta = with lib; {
description = "Backport of PEP 654 (exception groups)";
homepage = "https://github.com/agronholm/exceptiongroup";
changelog = "https://github.com/agronholm/exceptiongroup/blob/${version}/CHANGES.rst";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}