2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, click
|
|
|
|
, pyyaml
|
|
|
|
, buildPythonPackage
|
|
|
|
, isPy3k
|
2021-09-22 15:38:15 +00:00
|
|
|
, fetchpatch
|
2021-02-05 17:12:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec{
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "2.1.0";
|
2021-02-05 17:12:51 +00:00
|
|
|
pname = "panflute";
|
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "8a3d5dd2a10c3aa6fa8167713fedb47400f0e8ae6ea8346fd4b599842bb1882d";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
2021-09-22 15:38:15 +00:00
|
|
|
patches = [
|
|
|
|
# Upstream has relaxed the version constaints for the click dependency
|
|
|
|
# but there hasn't been a release since then
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/sergiocorreia/panflute/commit/dee6c716a73072a968d67f8638a61de44025d8de.patch";
|
|
|
|
sha256 = "sha256-Kj/NTcXsSkevpfr8OwoIQi0p6ChXDM6YgYDPNHJtJZo=";
|
|
|
|
})
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ click pyyaml ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Pythonic alternative to John MacFarlane's pandocfilters, with extra helper functions";
|
|
|
|
homepage = "http://scorreia.com/software/panflute";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ synthetica ];
|
|
|
|
};
|
|
|
|
}
|