nixpkgs/pkgs/development/python-modules/markdown/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.0 KiB
Nix
Raw Normal View History

2017-12-31 10:41:24 +00:00
{ lib
, buildPythonPackage
2020-06-07 08:15:35 +00:00
, pythonOlder
, fetchFromGitHub
2020-06-07 08:15:35 +00:00
, importlib-metadata
, pyyaml
, setuptools
, unittestCheckHook
, wheel
2017-12-31 10:41:24 +00:00
}:
buildPythonPackage rec {
pname = "markdown";
version = "3.4.4";
2017-12-31 10:41:24 +00:00
disabled = pythonOlder "3.7";
format = "pyproject";
src = fetchFromGitHub {
owner = "Python-Markdown";
repo = "markdown";
rev = "refs/tags/${version}";
hash = "sha256-5PIIhbJVsotGwZ3BQ4x0I7WjgnGF3opNrn8J+xZCflg=";
2017-12-31 10:41:24 +00:00
};
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [
2020-06-07 08:15:35 +00:00
importlib-metadata
];
nativeCheckInputs = [ unittestCheckHook pyyaml ];
2017-12-31 10:41:24 +00:00
pythonImportsCheck = [ "markdown" ];
meta = with lib; {
changelog = "https://github.com/Python-Markdown/markdown/blob/${src.rev}/docs/change_log/index.md";
description = "Python implementation of John Gruber's Markdown";
homepage = "https://github.com/Python-Markdown/markdown";
license = licenses.bsd3;
maintainers = with maintainers; [ dotlambda ];
2017-12-31 10:41:24 +00:00
};
2018-08-08 18:24:19 +00:00
}