Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5152c5adcc2a
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: a30bed52d400
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Mar 24, 2019

  1. Copy the full SHA
    a30bed5 View commit details
Showing with 44 additions and 0 deletions.
  1. +42 −0 pkgs/development/python-modules/pyhocon/default.nix
  2. +2 −0 pkgs/top-level/python-packages.nix
42 changes: 42 additions & 0 deletions pkgs/development/python-modules/pyhocon/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -3930,6 +3930,8 @@ in {

purepng = callPackage ../development/python-modules/purepng { };

pyhocon = callPackage ../development/python-modules/pyhocon { };

pymaging = callPackage ../development/python-modules/pymaging { };

pymaging_png = callPackage ../development/python-modules/pymaging_png { };