2017-12-31 10:41:24 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2020-06-07 08:15:35 +00:00
|
|
|
, pythonOlder
|
2023-03-24 05:00:59 +00:00
|
|
|
, fetchFromGitHub
|
2020-06-07 08:15:35 +00:00
|
|
|
, importlib-metadata
|
2021-05-18 15:02:22 +00:00
|
|
|
, pyyaml
|
2023-03-24 05:00:59 +00:00
|
|
|
, setuptools
|
2022-08-06 16:32:04 +00:00
|
|
|
, unittestCheckHook
|
2023-03-24 05:00:59 +00:00
|
|
|
, wheel
|
2017-12-31 10:41:24 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-11-16 17:32:43 +00:00
|
|
|
pname = "markdown";
|
2023-07-28 05:48:43 +00:00
|
|
|
version = "3.4.4";
|
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
|
|
|
|
2023-03-24 05:00:59 +00:00
|
|
|
format = "pyproject";
|
2022-05-05 21:14:25 +00:00
|
|
|
|
2023-03-24 05:00:59 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Python-Markdown";
|
|
|
|
repo = "markdown";
|
|
|
|
rev = "refs/tags/${version}";
|
2023-07-28 05:48:43 +00:00
|
|
|
hash = "sha256-5PIIhbJVsotGwZ3BQ4x0I7WjgnGF3opNrn8J+xZCflg=";
|
2017-12-31 10:41:24 +00:00
|
|
|
};
|
|
|
|
|
2023-03-24 05:00:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
wheel
|
|
|
|
];
|
|
|
|
|
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; {
|
2023-03-24 05:00:59 +00:00
|
|
|
changelog = "https://github.com/Python-Markdown/markdown/blob/${src.rev}/docs/change_log/index.md";
|
|
|
|
description = "Python implementation of John Gruber's Markdown";
|
2019-05-30 13:25:43 +00:00
|
|
|
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
|
|
|
}
|