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