mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-09 06:43:36 +00:00
47 lines
1009 B
Nix
47 lines
1009 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
objprint,
|
|
pdm-backend,
|
|
pygments,
|
|
pytestCheckHook,
|
|
python-slugify,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "marko";
|
|
version = "2.2.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "frostming";
|
|
repo = "marko";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-EuLir4Nws39B3onmWnnvEzp5W8934K89/WHOVHxVVKM=";
|
|
};
|
|
|
|
build-system = [ pdm-backend ];
|
|
|
|
optional-dependencies = {
|
|
codehilite = [ pygments ];
|
|
repr = [ objprint ];
|
|
toc = [ python-slugify ];
|
|
};
|
|
|
|
pythonImportsCheck = [ "marko" ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
]
|
|
++ lib.flatten (builtins.attrValues finalAttrs.passthru.optional-dependencies);
|
|
|
|
meta = {
|
|
description = "Markdown parser with high extensibility";
|
|
homepage = "https://github.com/frostming/marko";
|
|
changelog = "https://github.com/frostming/marko/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
})
|