1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 mdformat,
7 mdformat-footnote,
8 mdformat-frontmatter,
9 mdformat-tables,
10 mdit-py-plugins,
11 ruamel-yaml,
12 pytestCheckHook,
13}:
14
15buildPythonPackage rec {
16 pname = "mdformat-myst";
17 version = "0.2.1";
18 pyproject = true;
19
20 src = fetchFromGitHub {
21 owner = "executablebooks";
22 repo = "mdformat-myst";
23 tag = "v${version}";
24 hash = "sha256-Ty9QOsOTCNfhdLVuLfD0x63OFfHhODr14i/dhN+Sqnc=";
25 };
26
27 build-system = [ flit-core ];
28
29 dependencies = [
30 mdformat
31 mdformat-footnote
32 mdformat-frontmatter
33 mdformat-tables
34 mdit-py-plugins
35 ruamel-yaml
36 ];
37
38 nativeCheckInputs = [ pytestCheckHook ];
39
40 pythonImportsCheck = [ "mdformat_myst" ];
41
42 meta = {
43 description = "Mdformat plugin for MyST compatibility";
44 homepage = "https://github.com/executablebooks/mdformat-myst";
45 changelog = "https://github.com/executablebooks/mdformat-myst/releases/tag/v${version}/CHANGELOG.md";
46 license = lib.licenses.mit;
47 maintainers = with lib.maintainers; [ mattkang ];
48 };
49}