summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/mdformat-wikilink/default.nix
blob: 5378eade888effe8283726094fe23f51de69fe3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  poetry-core,
  markdown-it-py,
  mdformat,
  pytestCheckHook,
  pytest-cov-stub,
}:

buildPythonPackage rec {
  pname = "mdformat-wikilink";
  version = "0.3.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "tmr232";
    repo = "mdformat-wikilink";
    tag = "v${version}";
    hash = "sha256-tYUF5gNmXjzlf0jQg0tL2ayFGCSFFeYJHkWA6cYLpvI=";
  };

  build-system = [ poetry-core ];

  dependencies = [
    markdown-it-py
    mdformat
  ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-cov-stub
  ];

  pythonImportsCheck = [ "mdformat_wikilink" ];

  meta = {
    description = "Mdformat plugin for ensuring that wiki-style links are preserved during formatting";
    homepage = "https://github.com/tmr232/mdformat-wikilink";
    changelog = "https://github.com/tmr232/mdformat-wikilink/releases/tag/v${version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ mattkang ];
  };
}