1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 linkify-it-py,
7 markdown-it-py,
8 mdformat,
9 mdit-py-plugins,
10 pythonOlder,
11}:
12
13buildPythonPackage rec {
14 pname = "mdformat-footnote";
15 version = "0.1.1";
16 pyproject = true;
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchFromGitHub {
21 owner = "executablebooks";
22 repo = pname;
23 rev = "refs/tags/v${version}";
24 hash = "sha256-DUCBWcmB5i6/HkqxjlU3aTRO7i0n2sj+e/doKB8ffeo=";
25 };
26
27 nativeBuildInputs = [ flit-core ];
28
29 propagatedBuildInputs = [
30 mdformat
31 mdit-py-plugins
32 ];
33
34 pythonImportsCheck = [ "mdformat_footnote" ];
35
36 meta = with lib; {
37 description = "Footnote format addition for mdformat";
38 homepage = "https://github.com/executablebooks/mdformat-footnote";
39 license = licenses.mit;
40 maintainers = with maintainers; [ aldoborrero ];
41 };
42}