2021-02-02 19:08:47 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, python, pygments }:
|
2017-01-13 23:09:18 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-05-27 10:25:35 +01:00
|
|
|
pname = "markdown2";
|
2021-02-02 19:08:47 +00:00
|
|
|
version = "2.4.0";
|
2017-01-13 23:09:18 +00:00
|
|
|
|
2021-02-02 19:08:47 +00:00
|
|
|
# PyPI does not contain tests, so using GitHub instead.
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "trentm";
|
|
|
|
repo = "python-markdown2";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256:03qmf087phpj0h9hx111k4r5pkm48dhb61mqhp1v75gd09k0z79z";
|
2017-01-13 23:09:18 +00:00
|
|
|
};
|
|
|
|
|
2021-02-02 19:08:47 +00:00
|
|
|
checkInputs = [ pygments ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} ./test/test.py
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-01-13 23:09:18 +00:00
|
|
|
description = "A fast and complete Python implementation of Markdown";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/trentm/python-markdown2";
|
2017-01-13 23:09:18 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ hbunke ];
|
|
|
|
};
|
|
|
|
}
|