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 {};