2021-02-15 16:59:32 +01:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
2018-07-17 13:24:13 +02:00
|
|
|
|
2021-02-15 16:59:32 +01:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2018-07-17 13:24:13 +02:00
|
|
|
pname = "MarkdownPP";
|
2020-03-31 05:33:09 +02:00
|
|
|
version = "1.5.1";
|
2021-02-15 16:59:32 +01:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [ pillow watchdog ];
|
2018-07-17 13:24:13 +02:00
|
|
|
checkPhase = ''
|
|
|
|
cd test
|
2021-02-15 16:59:32 +01:00
|
|
|
PATH=$out/bin:$PATH ${python3}/bin/${python3.executable} test.py
|
2018-07-17 13:24:13 +02:00
|
|
|
'';
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jreese";
|
|
|
|
repo = "markdown-pp";
|
|
|
|
rev = "v${version}";
|
2020-03-31 05:33:09 +02:00
|
|
|
sha256 = "180i5wn9z6vdk2k2bh8345z3g80hj7zf5s2pq0h7k9vaxqpp7avc";
|
2018-07-17 13:24:13 +02:00
|
|
|
};
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-07-17 13:24:13 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|