1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6 setuptools-scm,
7 rich,
8 pytest-mock,
9}:
10
11buildPythonPackage rec {
12 pname = "enrich";
13 version = "1.2.7";
14 format = "setuptools";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "0a2ab0d2931dff8947012602d1234d2a3ee002d9a355b5d70be6bf5466008893";
19 };
20
21 buildInputs = [ setuptools-scm ];
22
23 propagatedBuildInputs = [ rich ];
24
25 nativeCheckInputs = [
26 pytestCheckHook
27 pytest-mock
28 ];
29
30 disabledTests = [
31 # console output order is racy
32 "test_rich_console_ex"
33 ];
34
35 pythonImportsCheck = [ "enrich" ];
36
37 meta = with lib; {
38 description = "Enrich adds few missing features to the wonderful rich library";
39 homepage = "https://github.com/pycontribs/enrich";
40 license = licenses.mit;
41 maintainers = [ ];
42 };
43}