From 354798437a8dc3d9ab1d1f5787209df0ac5ef742 Mon Sep 17 00:00:00 2001 From: Vincent Haupert Date: Mon, 25 May 2020 13:10:13 +0200 Subject: pythonPackages.hiyapyco: init at 0.4.16 --- .../python-modules/hiyapyco/default.nix | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pkgs/development/python-modules/hiyapyco/default.nix (limited to 'pkgs/development/python-modules') diff --git a/pkgs/development/python-modules/hiyapyco/default.nix b/pkgs/development/python-modules/hiyapyco/default.nix new file mode 100644 index 0000000000000..f443c58723e8e --- /dev/null +++ b/pkgs/development/python-modules/hiyapyco/default.nix @@ -0,0 +1,32 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pyyaml +, jinja2 +}: + +buildPythonPackage rec { + pname = "HiYaPyCo"; + version = "0.4.16"; + + src = fetchFromGitHub { + owner = "zerwes"; + repo = pname; + rev = "release-${version}"; + sha256 = "1ams9dp05yhgbg6255wrjgchl2mqg0s34d8b8prvql9lsh59s1fj"; + }; + + propagatedBuildInputs = [ pyyaml jinja2 ]; + + checkPhase = '' + set -e + find test -name 'test_*.py' -exec python {} \; + ''; + + meta = with lib; { + description = "A simple python lib allowing hierarchical overlay of config files in YAML syntax, offering different merge methods and variable interpolation based on jinja2."; + homepage = "https://github.com/zerwes/hiyapyco"; + license = licenses.gpl3; + maintainers = with maintainers; [ veehaitch ]; + }; +} -- cgit 1.4.1