2021-01-25 08:26:54 +00:00
|
|
|
{ fetchFromGitHub, pythonPackages, lib }:
|
2018-07-17 12:24:13 +01:00
|
|
|
|
|
|
|
with pythonPackages;
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "MarkdownPP";
|
2020-03-31 04:33:09 +01:00
|
|
|
version = "1.5.1";
|
2018-07-17 12:24:13 +01:00
|
|
|
propagatedBuildInputs = [ pillow watchdog ];
|
|
|
|
checkPhase = ''
|
|
|
|
cd test
|
|
|
|
PATH=$out/bin:$PATH ${python}/bin/${python.executable} test.py
|
|
|
|
'';
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jreese";
|
|
|
|
repo = "markdown-pp";
|
|
|
|
rev = "v${version}";
|
2020-03-31 04:33:09 +01:00
|
|
|
sha256 = "180i5wn9z6vdk2k2bh8345z3g80hj7zf5s2pq0h7k9vaxqpp7avc";
|
2018-07-17 12:24:13 +01:00
|
|
|
};
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-07-17 12:24:13 +01:00
|
|
|
description = "Preprocessor for Markdown files to generate a table of contents and other documentation needs";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "https://github.com/jreese/markdown-pp";
|
|
|
|
maintainers = with maintainers; [ zgrannan ];
|
|
|
|
};
|
|
|
|
}
|