81047829ea
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
45 lines
939 B
Nix
45 lines
939 B
Nix
{ 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 ];
|
|
};
|
|
}
|