nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 markdown-it-py,
7 pytest-regressions,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "mdit-py-plugins";
13 version = "0.5.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "executablebooks";
18 repo = "mdit-py-plugins";
19 tag = "v${version}";
20 hash = "sha256-MQU6u49KsWGaKeWU5v066kZidcfCoubqClxAapAZb9A=";
21 };
22
23 build-system = [ flit-core ];
24
25 dependencies = [ markdown-it-py ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 pytest-regressions
30 ];
31
32 pythonImportsCheck = [ "mdit_py_plugins" ];
33
34 meta = {
35 description = "Collection of core plugins for markdown-it-py";
36 homepage = "https://github.com/executablebooks/mdit-py-plugins";
37 changelog = "https://github.com/executablebooks/mdit-py-plugins/blob/${src.tag}/CHANGELOG.md";
38 license = lib.licenses.mit;
39 maintainers = [ ];
40 };
41}