Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / exceptiongroup / default.nix
blob61eef0a05abee9e619a4e026a9c3307167e2d3df
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , flit-scm
5 , pytestCheckHook
6 , pythonOlder
7 , pythonAtLeast
8 }:
10 buildPythonPackage rec {
11   pname = "exceptiongroup";
12   version = "1.1.2";
13   format = "pyproject";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "agronholm";
19     repo = "exceptiongroup";
20     rev = version;
21     hash = "sha256-19taP6adzmO4zH2As1OTXeYNFj6KwjhxBr09X+SrZRk=";
22   };
24   nativeBuildInputs = [
25     flit-scm
26   ];
28   SETUPTOOLS_SCM_PRETEND_VERSION = version;
30   doCheck = pythonAtLeast "3.11"; # infinite recursion with pytest
32   nativeCheckInputs = [
33     pytestCheckHook
34   ];
36   pythonImportsCheck = [
37     "exceptiongroup"
38   ];
40   meta = with lib; {
41     description = "Backport of PEP 654 (exception groups)";
42     homepage = "https://github.com/agronholm/exceptiongroup";
43     changelog = "https://github.com/agronholm/exceptiongroup/blob/${version}/CHANGES.rst";
44     license = with licenses; [ mit ];
45     maintainers = with maintainers; [ fab ];
46   };