summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/error-helper/default.nix
blob: 4a93a3df9655586910280241e96894bb782099ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
  lib,
  buildPythonPackage,
  fetchPypi,

  # build-system
  hatchling,
}:

buildPythonPackage (finalAttrs: {
  pname = "error-helper";
  version = "1.5";
  pyproject = true;
  __structuredAttrs = true;

  # GitHub source doesn't build correctly (fails imports check)
  src = fetchPypi {
    inherit (finalAttrs) version;
    pname = "error_helper";
    hash = "sha256-7kbzGmidsZzhoE5p9Ddjn6oDc+HUzkN02ykS0e0JodY=";
  };

  build-system = [
    hatchling
  ];

  # No tests in the Pypi archive.
  doCheck = false;

  pythonImportsCheck = [ "error_helper" ];

  meta = {
    description = "Minimalistic python module to print colorful messages";
    homepage = "https://github.com/30350n/error_helper";
    changelog = "https://github.com/30350n/error_helper/releases/tag/${finalAttrs.version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [
      gigahawk
    ];
  };
})