summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/enrich/default.nix
blob: 717ba634426db7c76fe3ecf118f534314fb59d37 (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
42
43
{
  lib,
  buildPythonPackage,
  fetchPypi,
  pytestCheckHook,
  setuptools-scm,
  rich,
  pytest-mock,
}:

buildPythonPackage rec {
  pname = "enrich";
  version = "1.2.7";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0a2ab0d2931dff8947012602d1234d2a3ee002d9a355b5d70be6bf5466008893";
  };

  buildInputs = [ setuptools-scm ];

  propagatedBuildInputs = [ rich ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-mock
  ];

  disabledTests = [
    # console output order is racy
    "test_rich_console_ex"
  ];

  pythonImportsCheck = [ "enrich" ];

  meta = {
    description = "Enrich adds few missing features to the wonderful rich library";
    homepage = "https://github.com/pycontribs/enrich";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}