1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6}:
7
8buildPythonPackage rec {
9 pname = "better-exceptions";
10 version = "0.3.3";
11 pyproject = true;
12
13 src = fetchPypi {
14 pname = "better_exceptions";
15 inherit version;
16 hash = "sha256-5Oa8GERNXwTm6JSxA4Hl6SHT1UQkBBgWLH21fp6zRTs=";
17 };
18
19 build-system = [ setuptools ];
20
21 pythonImportsCheck = [ "better_exceptions" ];
22
23 # As noted by @WolfangAukang, some check files need to be disabled because of various errors, same with some tests.
24 # After disabling and running the build, no tests are collected.
25 doCheck = false;
26
27 meta = {
28 description = "Pretty and more helpful exceptions in Python, automatically";
29 homepage = "https://github.com/qix-/better-exceptions";
30 license = lib.licenses.mit;
31 maintainers = [ lib.maintainers.alex-nt ];
32 };
33}