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