2017-12-31 10:41:24 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2020-06-07 08:15:35 +00:00
|
|
|
, pythonOlder
|
2021-05-18 15:02:22 +00:00
|
|
|
, fetchPypi
|
2020-06-07 08:15:35 +00:00
|
|
|
, importlib-metadata
|
2021-05-18 15:02:22 +00:00
|
|
|
, pyyaml
|
2022-08-06 16:32:04 +00:00
|
|
|
, unittestCheckHook
|
2017-12-31 10:41:24 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-11-16 17:32:43 +00:00
|
|
|
pname = "markdown";
|
2022-08-11 16:43:40 +00:00
|
|
|
version = "3.4.1";
|
2017-12-31 10:41:24 +00:00
|
|
|
|
2022-08-11 16:43:40 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-05-18 15:02:22 +00:00
|
|
|
|
2022-05-05 21:14:25 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2017-12-31 10:41:24 +00:00
|
|
|
src = fetchPypi {
|
2021-11-16 17:32:43 +00:00
|
|
|
pname = "Markdown";
|
|
|
|
inherit version;
|
2022-08-11 16:43:40 +00:00
|
|
|
sha256 = "3b809086bb6efad416156e00a0da66fe47618a5d6918dd688f53f40c8e4cfeff";
|
2017-12-31 10:41:24 +00:00
|
|
|
};
|
|
|
|
|
2021-11-16 17:32:43 +00:00
|
|
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [
|
2020-06-07 08:15:35 +00:00
|
|
|
importlib-metadata
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ unittestCheckHook pyyaml ];
|
2017-12-31 10:41:24 +00:00
|
|
|
|
2022-05-05 21:14:25 +00:00
|
|
|
pythonImportsCheck = [ "markdown" ];
|
|
|
|
|
2021-05-18 15:02:22 +00:00
|
|
|
meta = with lib; {
|
2019-05-30 13:25:43 +00:00
|
|
|
description = "A Python implementation of John Gruber's Markdown with Extension support";
|
|
|
|
homepage = "https://github.com/Python-Markdown/markdown";
|
2021-05-18 15:02:22 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2017-12-31 10:41:24 +00:00
|
|
|
};
|
2018-08-08 18:24:19 +00:00
|
|
|
}
|