2017-12-31 10:41:24 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-09-18 01:12:57 +01:00
|
|
|
, setuptools
|
2017-12-31 10:41:24 +00:00
|
|
|
, nose
|
|
|
|
, pyyaml
|
2020-06-07 09:15:35 +01:00
|
|
|
, pythonOlder
|
|
|
|
, importlib-metadata
|
|
|
|
, isPy3k
|
2017-12-31 10:41:24 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Markdown";
|
2021-03-24 09:28:17 +00:00
|
|
|
version = "3.3.4";
|
2017-12-31 10:41:24 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 09:28:17 +00:00
|
|
|
sha256 = "31b5b491868dcc87d6c24b7e3d19a0d730d59d3e46f4eea6430a321bed387a49";
|
2017-12-31 10:41:24 +00:00
|
|
|
};
|
|
|
|
|
2020-08-25 03:07:09 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
setuptools
|
2020-06-07 09:15:35 +01:00
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
|
|
importlib-metadata
|
|
|
|
];
|
|
|
|
|
|
|
|
disabled = !isPy3k;
|
2019-09-18 01:12:57 +01:00
|
|
|
|
2017-12-31 10:41:24 +00:00
|
|
|
checkInputs = [ nose pyyaml ];
|
|
|
|
|
|
|
|
meta = {
|
2019-05-30 14:25:43 +01:00
|
|
|
description = "A Python implementation of John Gruber's Markdown with Extension support";
|
|
|
|
homepage = "https://github.com/Python-Markdown/markdown";
|
2017-12-31 10:41:24 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
2018-08-08 19:24:19 +01:00
|
|
|
}
|