1{ lib, buildPythonPackage, fetchFromGitHub
2, inform
3, pytestCheckHook
4, docopt
5, natsort
6, voluptuous
7}:
8
9buildPythonPackage rec {
10 pname = "nestedtext";
11 version = "1.2";
12
13 src = fetchFromGitHub {
14 owner = "KenKundert";
15 repo = "nestedtext";
16 rev = "v${version}";
17 fetchSubmodules = true;
18 sha256 = "1dwks5apghg29aj90nc4qm0chk195jh881297zr1wk7mqd2n159y";
19 };
20
21 propagatedBuildInputs = [ inform ];
22
23 checkInputs = [ pytestCheckHook docopt natsort voluptuous ];
24 pytestFlagsArray = [ "--ignore=build" ]; # Avoids an ImportMismatchError.
25
26 meta = with lib; {
27 description = "A human friendly data format";
28 longDescription = ''
29 NestedText is a file format for holding data that is to be entered,
30 edited, or viewed by people. It allows data to be organized into a nested
31 collection of dictionaries, lists, and strings. In this way it is similar
32 to JSON, YAML and TOML, but without the complexity and risk of YAML and
33 without the syntactic clutter of JSON and TOML. NestedText is both simple
34 and natural. Only a small number of concepts and rules must be kept in
35 mind when creating it. It is easily created, modified, or viewed with a
36 text editor and easily understood and used by both programmers and
37 non-programmers.
38 '';
39 homepage = "https://nestedtext.org";
40 license = licenses.mit;
41 maintainers = with maintainers; [ jeremyschlatter ];
42 };
43}