0f308bb836
Diff: https://github.com/executablebooks/mdformat-myst/compare/v0.2.0...0.3.0 Changelog: https://github.com/executablebooks/mdformat-myst/releases/tag/v0.3.0/CHANGELOG.md
56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
flit-core,
|
|
|
|
# dependencies
|
|
mdformat,
|
|
mdformat-footnote,
|
|
mdformat-front-matters,
|
|
mdformat-gfm,
|
|
mdit-py-plugins,
|
|
ruamel-yaml,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "mdformat-myst";
|
|
version = "0.3.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "executablebooks";
|
|
repo = "mdformat-myst";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-y0zN47eK0UqTHx6ft/OrczAjdHdmPKIByCnz1c1JURQ=";
|
|
};
|
|
|
|
build-system = [ flit-core ];
|
|
|
|
dependencies = [
|
|
mdformat
|
|
mdformat-footnote
|
|
mdformat-front-matters
|
|
mdformat-gfm
|
|
mdit-py-plugins
|
|
ruamel-yaml
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "mdformat_myst" ];
|
|
|
|
meta = {
|
|
description = "Mdformat plugin for MyST compatibility";
|
|
homepage = "https://github.com/executablebooks/mdformat-myst";
|
|
changelog = "https://github.com/executablebooks/mdformat-myst/releases/tag/${finalAttrs.src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ mattkang ];
|
|
};
|
|
})
|