diff options
author | Robert Schütz <nix@dotlambda.de> | 2023-08-01 23:22:22 -0700 |
---|---|---|
committer | Robert Schütz <nix@dotlambda.de> | 2023-08-01 23:24:23 -0700 |
commit | c20b0b8ac5fb770dd99409d4e3af599e5ebfd839 (patch) | |
tree | f157c1d77db272ba785dce3d1efb347fb5307f51 /pkgs/tools/text/mrkd | |
parent | 26f7e301327d1bf080d691978d2da368622ea19e (diff) | |
download | nixlib-c20b0b8ac5fb770dd99409d4e3af599e5ebfd839.tar nixlib-c20b0b8ac5fb770dd99409d4e3af599e5ebfd839.tar.gz nixlib-c20b0b8ac5fb770dd99409d4e3af599e5ebfd839.tar.bz2 nixlib-c20b0b8ac5fb770dd99409d4e3af599e5ebfd839.tar.lz nixlib-c20b0b8ac5fb770dd99409d4e3af599e5ebfd839.tar.xz nixlib-c20b0b8ac5fb770dd99409d4e3af599e5ebfd839.tar.zst nixlib-c20b0b8ac5fb770dd99409d4e3af599e5ebfd839.zip |
mrkd: remove from python3Packages
It's a CLI tool.
Diffstat (limited to 'pkgs/tools/text/mrkd')
-rw-r--r-- | pkgs/tools/text/mrkd/default.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/tools/text/mrkd/default.nix b/pkgs/tools/text/mrkd/default.nix new file mode 100644 index 000000000000..1b97ef4b8c4d --- /dev/null +++ b/pkgs/tools/text/mrkd/default.nix @@ -0,0 +1,51 @@ +{ lib +, python3 +, fetchPypi +}: + +let + python = python3.override { + packageOverrides = self: super: { + # https://github.com/refi64/mrkd/pull/6 + mistune = super.mistune.overridePythonAttrs (old: rec { + version = "0.8.4"; + src = fetchPypi { + inherit (old) pname; + inherit version; + hash = "sha256-WaNCnbU8ULXGvMigf4hIywDX3IvbQxpKtBkg0gHUdW4="; + }; + meta = old.meta // { + knownVulnerabilities = [ + "CVE-2022-34749" + ]; + }; + }); + }; + }; +in python.pkgs.buildPythonApplication rec { + pname = "mrkd"; + version = "0.2.0"; + + format = "setuptools"; + + src = fetchPypi { + inherit pname version; + sha256 = "456f8c1be99da268554b29c6b5383532e58119def5a65d85270bc6a0ecc26aaf"; + }; + + propagatedBuildInputs = with python.pkgs; [ + jinja2 + mistune + pygments + setuptools + ]; + + pythonImportsCheck = [ "mrkd" ]; + + meta = with lib; { + description = "Write man pages using Markdown, and convert them to Roff or HTML"; + homepage = "https://github.com/refi64/mrkd"; + license = licenses.bsd2; + maintainers = with maintainers; [ prusnak ]; + }; +} |