1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-06 18:49:12 +03:00
nixpkgs/pkgs/development/python-modules/exceptiongroup/default.nix
2022-10-28 15:23:14 +02:00

39 lines
814 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, flit-core
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "exceptiongroup";
version = "1.0.0";
format = "flit";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-r/ur8T+26YmIw42cVlDnAVaf48HeMjPPthxfM3dGkK0=";
};
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 ];
};
}