nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 flit-core,
8
9 # dependencies
10 markdown-it-py,
11 mdformat,
12 mdit-py-plugins,
13 wcwidth,
14
15 # tests
16 pytestCheckHook,
17}:
18
19buildPythonPackage (finalAttrs: {
20 pname = "mdformat-gfm";
21 version = "1.0.0";
22 pyproject = true;
23
24 src = fetchFromGitHub {
25 owner = "hukkin";
26 repo = "mdformat-gfm";
27 tag = finalAttrs.version;
28 hash = "sha256-Vijt5P3KRL4jkU8AI2lAsJkvFne/l3utUkjHUs8PQHI=";
29 };
30
31 build-system = [
32 flit-core
33 ];
34
35 dependencies = [
36 markdown-it-py
37 mdformat
38 mdit-py-plugins
39 wcwidth
40 ];
41
42 nativeCheckInputs = [ pytestCheckHook ];
43
44 pythonImportsCheck = [ "mdformat_gfm" ];
45
46 meta = {
47 description = "Mdformat plugin for GitHub Flavored Markdown compatibility";
48 homepage = "https://github.com/hukkin/mdformat-gfm";
49 changelog = "https://github.com/hukkin/mdformat-gfm/blob/${finalAttrs.src.tag}/CHANGELOG.md";
50 license = lib.licenses.mit;
51 maintainers = with lib.maintainers; [
52 aldoborrero
53 polarmutex
54 ];
55 };
56})