From 19945a3dfc4b8157066eb05350c67ba603654101 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 7 Apr 2018 15:26:08 +0200 Subject: [PATCH] python.pkgs.cmarkgfm: init at 0.3.0 --- .../python-modules/cmarkgfm/default.nix | 29 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/python-modules/cmarkgfm/default.nix diff --git a/pkgs/development/python-modules/cmarkgfm/default.nix b/pkgs/development/python-modules/cmarkgfm/default.nix new file mode 100644 index 000000000000..2dcd8422ebec --- /dev/null +++ b/pkgs/development/python-modules/cmarkgfm/default.nix @@ -0,0 +1,29 @@ +{ lib, buildPythonPackage, fetchPypi, cffi, pytest }: + +buildPythonPackage rec { + pname = "cmarkgfm"; + version = "0.3.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "84465f6534f49687f1a8069d48044799d2dd3f4e7ff06b66b7eea1502f3c402d"; + }; + + propagatedBuildInputs = [ cffi ]; + + checkInputs = [ pytest ]; + + checkPhase = '' + py.test + ''; + + # no tests in PyPI tarball + # see https://github.com/jonparrott/cmarkgfm/pull/6 + doCheck = false; + + meta = with lib; { + description = "Minimal bindings to GitHub's fork of cmark"; + homepage = https://github.com/jonparrott/cmarkgfm; + license = licenses.mit; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4163692a9c76..3e043aba7b87 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1125,6 +1125,8 @@ in { cheroot = callPackage ../development/python-modules/cheroot {}; + cmarkgfm = callPackage ../development/python-modules/cmarkgfm { }; + circus = callPackage ../development/python-modules/circus {}; colorclass = callPackage ../development/python-modules/colorclass {};