1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, unittestCheckHook
5}:
6
7buildPythonPackage rec {
8 pname = "mdutils";
9 version = "1.6.0";
10
11 src = fetchFromGitHub {
12 owner = "didix21";
13 repo = pname;
14 rev = "refs/tags/v${version}";
15 hash = "sha256-xF6z63CjL/qSBQsm/fSTQhwpg9yJU4qrY06cjn1PbCk=";
16 };
17
18 nativeCheckInputs = [ unittestCheckHook ];
19
20 pythonImportsCheck = [ "mdutils" ];
21
22 meta = with lib; {
23 description = "Set of basic tools that can help to create Markdown files";
24 longDescription = ''
25 This Python package contains a set of basic tools that can help to create
26 a Markdown file while running a Python code. Thus, if you are executing a
27 Python code and you save the result in a text file, Why not format it? So
28 using files such as Markdown can give a great look to those results. In
29 this way, mdutils will make things easy for creating Markdown files.
30 '';
31 homepage = "https://github.com/didix21/mdutils";
32 changelog = "https://github.com/didix21/mdutils/releases/tag/${src.rev}";
33 license = licenses.mit;
34 maintainers = with maintainers; [ azahi ];
35 };
36}