about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyhocon
diff options
context:
space:
mode:
authorBryan Richter <b@chreekat.net>2019-03-24 16:37:42 +0200
committerRobert Schütz <rschuetz17@gmail.com>2019-03-24 15:37:42 +0100
commita30bed52d4008e1b3b04d5a37ad3c99600785f8c (patch)
tree8ce77312078ce14fa355359031e7244e75af4946 /pkgs/development/python-modules/pyhocon
parent5152c5adcc2aacc4dda8b6ab63cec40b5deaf087 (diff)
pythonPackages.pyhocon: init at 0.3.51 (#57025)
Diffstat (limited to 'pkgs/development/python-modules/pyhocon')
-rw-r--r--pkgs/development/python-modules/pyhocon/default.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyhocon/default.nix b/pkgs/development/python-modules/pyhocon/default.nix
new file mode 100644
index 0000000000000..ac4af42851cda
--- /dev/null
+++ b/pkgs/development/python-modules/pyhocon/default.nix
@@ -0,0 +1,42 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+# Runtime inputs:
+, pyparsing
+# Check inputs:
+, pytest
+, mock
+}:
+
+buildPythonPackage rec {
+  pname = "pyhocon";
+  version = "0.3.51";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "10l014br012fa583rnj3wqf6g9gmljamcwpw4snqwwg15i0dmkll";
+  };
+
+  propagatedBuildInputs = [ pyparsing ];
+
+  checkInputs = [ pytest mock ];
+
+  # Tests fail because necessary data files aren't packaged for PyPi yet.
+  # See https://github.com/chimpler/pyhocon/pull/203
+  doCheck = false;
+
+  meta = with lib; {
+    homepage = https://github.com/chimpler/pyhocon/;
+    description = "HOCON parser for Python";
+    # Long description copied from
+    # https://github.com/chimpler/pyhocon/blob/55a9ea3ebeeac5764bdebebfbeacbf099f64db26/setup.py
+    # (the tip of master as of 2019-03-24).
+    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 ];
+  };
+}