2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchPypi,
|
|
|
|
click,
|
|
|
|
pyyaml,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
2021-02-05 17:12:51 +00:00
|
|
|
}:
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
buildPythonPackage rec {
|
2021-02-05 17:12:51 +00:00
|
|
|
pname = "panflute";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.3.1";
|
2022-07-14 12:49:19 +00:00
|
|
|
format = "setuptools";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-XxvQKjTvOYLuAl7FtY+zpu7fwx2ZS4rjnY3JkVotjx8=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
pyyaml
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "panflute" ];
|
2022-07-14 12:49:19 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2022-07-14 12:49:19 +00:00
|
|
|
description = "Pythonic alternative to John MacFarlane's pandocfilters, with extra helper functions";
|
2021-02-05 17:12:51 +00:00
|
|
|
homepage = "http://scorreia.com/software/panflute";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/sergiocorreia/panflute/releases/tag/${version}";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ synthetica ];
|
|
|
|
};
|
|
|
|
}
|