From abe24e99b580d67f76150f3c3f88e7b3b1c00c77 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 7 Apr 2022 17:47:28 +0200 Subject: [PATCH] python3Packages.exceptiongroup: init at 1.0.0rc2 --- .../python-modules/exceptiongroup/default.nix | 39 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/python-modules/exceptiongroup/default.nix diff --git a/pkgs/development/python-modules/exceptiongroup/default.nix b/pkgs/development/python-modules/exceptiongroup/default.nix new file mode 100644 index 000000000000..ac4174b2f455 --- /dev/null +++ b/pkgs/development/python-modules/exceptiongroup/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d3afead09532..3616171dfdfd 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2751,6 +2751,8 @@ in { exdown = callPackage ../development/python-modules/exdown { }; + exceptiongroup = callPackage ../development/python-modules/exceptiongroup { }; + exchangelib = callPackage ../development/python-modules/exchangelib { }; execnet = callPackage ../development/python-modules/execnet { };