summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2022-07-28 13:58:01 +0200
committerGitHub <noreply@github.com>2022-07-28 13:58:01 +0200
commit2d9b7cb5f0a41da95fccc120acf730fd20d8598d (patch)
tree81160aee4eeade80061a1a496813d33037e423cc
parent4f45ea54d6f058dd66b707135e19b3b516b7a9a5 (diff)
parentc9e81d32fa207b936bcfd2841aa630d1979b4cfd (diff)
Merge pull request #182634 from azahi/mdutils
-rw-r--r--pkgs/development/python-modules/mdutils/default.nix38
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/mdutils/default.nix b/pkgs/development/python-modules/mdutils/default.nix
new file mode 100644
index 000000000000..08ea5eb8b6fc
--- /dev/null
+++ b/pkgs/development/python-modules/mdutils/default.nix
@@ -0,0 +1,38 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, python
+}:
+
+buildPythonPackage rec {
+ pname = "mdutils";
+ version = "1.4.0";
+
+ src = fetchFromGitHub {
+ owner = "didix21";
+ repo = pname;
+ rev = "v${version}";
+ sha256 = "sha256-regIrMWbGmW574dfojxZFJoivpaqOpN1I6YsqLEp8BM=";
+ };
+
+ checkPhase = ''
+ runHook preCheck
+ ${python.interpreter} -m unittest discover
+ runHook postCheck
+ '';
+
+ meta = with lib; {
+ description = "Set of basic tools that can help to create Markdown files";
+ longDescription = ''
+ This Python package contains a set of basic tools that can help to create
+ a Markdown file while running a Python code. Thus, if you are executing a
+ Python code and you save the result in a text file, Why not format it? So
+ using files such as Markdown can give a great look to those results. In
+ this way, mdutils will make things easy for creating Markdown files.
+ '';
+ homepage = "https://github.com/didix21/mdutils";
+ changelog = "https://github.com/didix21/mdutils/releases/tag/${src.rev}";
+ license = licenses.mit;
+ maintainers = with maintainers; [ azahi ];
+ };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index a8668c476fb0..19c36ee694d1 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -5364,6 +5364,8 @@ in {
mdurl = callPackage ../development/python-modules/mdurl { };
+ mdutils = callPackage ../development/python-modules/mdutils { };
+
MDP = callPackage ../development/python-modules/mdp { };
measurement = callPackage ../development/python-modules/measurement { };