1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4# Runtime inputs:
5, pyparsing
6# Check inputs:
7, pytest
8, mock
9}:
10
11buildPythonPackage rec {
12 pname = "pyhocon";
13 version = "0.3.53";
14
15 src = fetchFromGitHub {
16 owner = "chimpler";
17 repo = "pyhocon";
18 rev = version;
19 sha256 = "1lr56piiasnq1aiwli8ldw2wc3xjfck8az991mr5rdbqqsrh9vkv";
20 };
21
22 propagatedBuildInputs = [ pyparsing ];
23
24 checkInputs = [ pytest mock ];
25
26 # Tests fail because necessary data files aren't packaged for PyPi yet.
27 # See https://github.com/chimpler/pyhocon/pull/203
28 doCheck = false;
29
30 meta = with lib; {
31 homepage = "https://github.com/chimpler/pyhocon/";
32 description = "HOCON parser for Python";
33 # Long description copied from
34 # https://github.com/chimpler/pyhocon/blob/55a9ea3ebeeac5764bdebebfbeacbf099f64db26/setup.py
35 # (the tip of master as of 2019-03-24).
36 longDescription = ''
37 A HOCON parser for Python. It additionally provides a tool
38 (pyhocon) to convert any HOCON content into json, yaml and properties
39 format
40 '';
41 license = licenses.asl20;
42 maintainers = [ maintainers.chreekat ];
43 };
44}