1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, flit-core
5, mdformat
6, mdit-py-plugins
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "mdformat-simple-breaks";
12 version = "0.0.1";
13 format = "pyproject";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "csala";
19 repo = pname;
20 rev = "refs/tags/v${version}";
21 hash = "sha256-4lJHB4r9lI2uGJ/BmFFc92sumTRKBBwiRmGBdQkzfd0=";
22 };
23
24 nativeBuildInputs = [
25 flit-core
26 ];
27
28 buildInputs = [
29 mdformat
30 ];
31
32 pythonImportsCheck = [
33 "mdformat_simple_breaks"
34 ];
35
36 meta = with lib; {
37 description = "mdformat plugin to render thematic breaks using three dashes";
38 homepage = "https://github.com/csala/mdformat-simple-breaks";
39 license = licenses.mit;
40 maintainers = with maintainers; [ aldoborrero ];
41 };
42}