nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 mdformat,
7 mdit-py-plugins,
8}:
9
10buildPythonPackage rec {
11 pname = "mdformat-footnote";
12 version = "0.1.2";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "executablebooks";
17 repo = "mdformat-footnote";
18 tag = "v${version}";
19 hash = "sha256-QiekcxKfJGWog8rfSL6VIDHdo7rpw8ftl/dDJpVpdUg=";
20 };
21
22 build-system = [ flit-core ];
23
24 dependencies = [
25 mdformat
26 mdit-py-plugins
27 ];
28
29 pythonImportsCheck = [ "mdformat_footnote" ];
30
31 meta = {
32 description = "Footnote format addition for mdformat";
33 homepage = "https://github.com/executablebooks/mdformat-footnote";
34 changelog = "https://github.com/executablebooks/mdformat-footnote/releases/tag/${src.tag}";
35 license = lib.licenses.mit;
36 maintainers = with lib.maintainers; [ aldoborrero ];
37 };
38}