2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, click
|
|
|
|
, pyyaml
|
|
|
|
, buildPythonPackage
|
2022-07-14 12:49:19 +00:00
|
|
|
, pythonOlder
|
2021-02-05 17:12:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec{
|
|
|
|
pname = "panflute";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "2.1.5";
|
|
|
|
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;
|
2022-07-14 12:49:19 +00:00
|
|
|
hash = "sha256-7xHcWVoZh51PlonvmoOCBKJGNMpjT7z8jkoO1B65EqE=";
|
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
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"panflute"
|
|
|
|
];
|
|
|
|
|
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";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ synthetica ];
|
|
|
|
};
|
|
|
|
}
|