1{
2 lib,
3 fetchPypi,
4 click,
5 pyyaml,
6 buildPythonPackage,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "panflute";
12 version = "2.3.1";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-XxvQKjTvOYLuAl7FtY+zpu7fwx2ZS4rjnY3JkVotjx8=";
20 };
21
22 propagatedBuildInputs = [
23 click
24 pyyaml
25 ];
26
27 pythonImportsCheck = [ "panflute" ];
28
29 meta = with lib; {
30 description = "Pythonic alternative to John MacFarlane's pandocfilters, with extra helper functions";
31 homepage = "https://scorreia.com/software/panflute";
32 changelog = "https://github.com/sergiocorreia/panflute/releases/tag/${version}";
33 license = licenses.bsd3;
34 maintainers = with maintainers; [ synthetica ];
35 };
36}