From cc26f5fda97a6e4ce5c0b62d38f97b3026e5d959 Mon Sep 17 00:00:00 2001 From: David Leung Date: Sun, 7 Apr 2019 21:09:29 +0800 Subject: [PATCH 1/2] maintainers: add dhkl --- maintainers/maintainer-list.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 039da8cbff80..447c89dbc730 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -1219,6 +1219,11 @@ github = "dgonyeo"; name = "Derek Gonyeo"; }; + dhkl = { + email = "david@davidslab.com"; + github = "dhl"; + name = "David Leung"; + }; dipinhora = { email = "dipinhora+github@gmail.com"; github = "dipinhora"; From 7033cf04dddaadcc04d777495e63fde8ad119bd7 Mon Sep 17 00:00:00 2001 From: David Leung Date: Sun, 7 Apr 2019 21:11:01 +0800 Subject: [PATCH 2/2] pythonPackages.chevron: init at 0.13.1 A Python implementation of mustache --- .../python-modules/chevron/default.nix | 29 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/python-modules/chevron/default.nix diff --git a/pkgs/development/python-modules/chevron/default.nix b/pkgs/development/python-modules/chevron/default.nix new file mode 100644 index 000000000000..c6338fce56bc --- /dev/null +++ b/pkgs/development/python-modules/chevron/default.nix @@ -0,0 +1,29 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, python +}: + +buildPythonPackage rec { + pname = "chevron"; + version = "0.13.1"; + + # No tests available in the PyPI tarball + src = fetchFromGitHub { + owner = "noahmorrison"; + repo = "chevron"; + rev = "0.13.1"; + sha256 = "0l1ik8dvi6bgyb3ym0w4ii9dh25nzy0x4yawf4zbcyvvcb6af470"; + }; + + checkPhase = '' + ${python.interpreter} test_spec.py + ''; + + meta = with lib; { + homepage = https://github.com/noahmorrison/chevron; + description = "A python implementation of the mustache templating language"; + license = licenses.mit; + maintainers = with maintainers; [ dhkl ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1cabba8ea42f..5439841c5763 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1177,6 +1177,8 @@ in { cheroot = callPackage ../development/python-modules/cheroot {}; + chevron = callPackage ../development/python-modules/chevron {}; + cli-helpers = callPackage ../development/python-modules/cli-helpers {}; cmarkgfm = callPackage ../development/python-modules/cmarkgfm { };