summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyhocon/default.nix
blob: aa967b76954add85154314582912622017eaae6e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ lib
, buildPythonPackage
, fetchFromGitHub
, mock
, pyparsing
, pytestCheckHook
, python-dateutil
}:

buildPythonPackage rec {
  pname = "pyhocon";
  version = "0.3.59";

  src = fetchFromGitHub {
    owner = "chimpler";
    repo = "pyhocon";
    rev = version;
    sha256 = "1yr24plg3d4girg27ajjkf9mndig706fs8b2kmnmhi4l2xi866yh";
  };

  propagatedBuildInputs = [
    pyparsing
    python-dateutil
  ];

  checkInputs = [
    mock
    pytestCheckHook
  ];

  pythonImportsCheck = [ "pyhocon" ];

  meta = with lib; {
    homepage = "https://github.com/chimpler/pyhocon/";
    description = "HOCON parser for Python";
    # taken from https://pypi.org/project/pyhocon/
    longDescription = ''
      A HOCON parser for Python. It additionally provides a tool
      (pyhocon) to convert any HOCON content into json, yaml and properties
      format
    '';
    license = licenses.asl20;
    maintainers = [ maintainers.chreekat ];
  };
}