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