depot/third_party/nixpkgs/pkgs/development/python-modules/markdown/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

48 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, importlib-metadata
, pyyaml
, setuptools
, unittestCheckHook
}:
buildPythonPackage rec {
pname = "markdown";
version = "3.6";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "Python-Markdown";
repo = "markdown";
rev = "refs/tags/${version}";
hash = "sha256-jGo9/ZS2EhMDl/o1ref7Owqckuc7am578Ojmcz2aWIE=";
};
build-system = [
setuptools
];
dependencies = lib.optionals (pythonOlder "3.10") [
importlib-metadata
];
nativeCheckInputs = [
unittestCheckHook
pyyaml
];
pythonImportsCheck = [ "markdown" ];
meta = with lib; {
changelog = "https://github.com/Python-Markdown/markdown/blob/${src.rev}/docs/changelog.md";
description = "Python implementation of John Gruber's Markdown";
mainProgram = "markdown_py";
homepage = "https://github.com/Python-Markdown/markdown";
license = licenses.bsd3;
maintainers = with maintainers; [ dotlambda ];
};
}