2020-06-19 08:47:36 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools
|
|
|
|
, nose
|
|
|
|
, pyyaml
|
|
|
|
, pythonOlder
|
|
|
|
, importlib-metadata
|
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Markdown";
|
|
|
|
version = "3.1.1";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "2e50876bcdd74517e7b71f3e7a76102050edec255b3983403f1a63e7c8a41e7a";
|
|
|
|
};
|
|
|
|
|
2020-08-25 03:07:09 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
setuptools
|
2020-06-19 08:47:36 +01:00
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
|
|
importlib-metadata
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [ nose pyyaml ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A Python implementation of John Gruber's Markdown with Extension support";
|
|
|
|
homepage = "https://github.com/Python-Markdown/markdown";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|