16 buildPythonPackage rec {
21 disabled = pythonOlder "3.7";
23 src = fetchFromGitHub {
26 rev = "refs/tags/v${version}";
27 hash = "sha256-lNqSmEmzuRGdXs/4mwKSh7yDGHnAykpIDIR+abbLCns=";
30 nativeBuildInputs = [ flit-core ];
32 propagatedBuildInputs = [ inform ];
42 # Tests depend on quantiphy. To avoid infinite recursion, tests are only
43 # enabled when building passthru.tests.
47 # Avoids an ImportMismatchError.
52 # Examples are prefixed with test_
57 runTests = nestedtext.overrideAttrs (_: {
62 pythonImportsCheck = [ "nestedtext" ];
65 description = "Human friendly data format";
67 NestedText is a file format for holding data that is to be entered,
68 edited, or viewed by people. It allows data to be organized into a nested
69 collection of dictionaries, lists, and strings. In this way it is similar
70 to JSON, YAML and TOML, but without the complexity and risk of YAML and
71 without the syntactic clutter of JSON and TOML. NestedText is both simple
72 and natural. Only a small number of concepts and rules must be kept in
73 mind when creating it. It is easily created, modified, or viewed with a
74 text editor and easily understood and used by both programmers and
77 homepage = "https://nestedtext.org";
78 changelog = "https://github.com/KenKundert/nestedtext/blob/v${version}/doc/releases.rst";
79 license = licenses.mit;
80 maintainers = with maintainers; [ jeremyschlatter ];