1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 arrow,
7 six,
8 hypothesis,
9 pytestCheckHook,
10 pythonOlder,
11}:
12
13buildPythonPackage rec {
14 pname = "inform";
15 version = "1.29";
16 format = "pyproject";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchFromGitHub {
21 owner = "KenKundert";
22 repo = "inform";
23 rev = "refs/tags/v${version}";
24 hash = "sha256-quJGgXMvVZGqZA6M/AjU/cjYeL0R2nuPDoL0Ji0Ow6I=";
25 };
26
27 nativeBuildInputs = [ flit-core ];
28
29 propagatedBuildInputs = [
30 arrow
31 six
32 ];
33
34 nativeCheckInputs = [
35 pytestCheckHook
36 hypothesis
37 ];
38
39 disabledTests = [ "test_prostrate" ];
40
41 meta = with lib; {
42 description = "Print and logging utilities";
43 longDescription = ''
44 Inform is designed to display messages from programs that are typically
45 run from a console. It provides a collection of ‘print’ functions that
46 allow you to simply and cleanly print different types of messages.
47 '';
48 homepage = "https://inform.readthedocs.io";
49 changelog = "https://github.com/KenKundert/inform/blob/v${version}/doc/releases.rst";
50 license = licenses.gpl3Only;
51 maintainers = with maintainers; [ jeremyschlatter ];
52 };
53}