Merge pull request #117917 from KAction/md2gemini
This commit is contained in:
commit
97490e6783
19
pkgs/development/python-modules/cjkwrap/default.nix
Normal file
19
pkgs/development/python-modules/cjkwrap/default.nix
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{ lib, buildPythonPackage, fetchPypi }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "CJKwrap";
|
||||||
|
version = "2.2";
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "1b603sg6c2gv9vmlxwr6r1qvhadqk3qp6vifmijris504zjx5ix2";
|
||||||
|
};
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "cjkwrap" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A library for wrapping and filling CJK text";
|
||||||
|
homepage = "https://f.gallai.re/cjkwrap";
|
||||||
|
license = licenses.lgpl3Plus;
|
||||||
|
maintainers = [ maintainers.kaction ];
|
||||||
|
};
|
||||||
|
}
|
23
pkgs/development/python-modules/md2gemini/default.nix
Normal file
23
pkgs/development/python-modules/md2gemini/default.nix
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{ lib, buildPythonPackage, fetchPypi, mistune_2_0, cjkwrap, wcwidth
|
||||||
|
, pytestCheckHook }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "md2gemini";
|
||||||
|
version = "1.8.1";
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ mistune_2_0 cjkwrap wcwidth ];
|
||||||
|
checkInputs = [ pytestCheckHook ];
|
||||||
|
pythonImportsCheck = [ "md2gemini" ];
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "0mfa0f0m762168fbsxjr1cx9yhj82dr8z1d28jl6hj9bkqnvvwiy";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Markdown to Gemini text format conversion library";
|
||||||
|
homepage = "https://github.com/makeworld-the-better-one/md2gemini";
|
||||||
|
license = licenses.lgpl3Plus;
|
||||||
|
maintainers = [ maintainers.kaction ];
|
||||||
|
};
|
||||||
|
}
|
19
pkgs/development/python-modules/mistune/common.nix
Normal file
19
pkgs/development/python-modules/mistune/common.nix
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{ lib, buildPythonPackage, fetchPypi, nose, version, sha256 }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
inherit version;
|
||||||
|
pname = "mistune";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version sha256;
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ nose ];
|
||||||
|
pythonImportsCheck = [ "mistune" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "The fastest markdown parser in pure Python";
|
||||||
|
homepage = "https://github.com/lepture/mistune";
|
||||||
|
license = licenses.bsd3;
|
||||||
|
};
|
||||||
|
}
|
@ -1,23 +1,11 @@
|
|||||||
{ lib
|
self: rec {
|
||||||
, buildPythonPackage
|
mistune_0_8 = self.callPackage ./common.nix {
|
||||||
, fetchPypi
|
version = "0.8.4";
|
||||||
, nose
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
|
||||||
pname = "mistune";
|
|
||||||
version = "0.8.4";
|
|
||||||
|
|
||||||
src = fetchPypi {
|
|
||||||
inherit pname version;
|
|
||||||
sha256 = "59a3429db53c50b5c6bcc8a07f8848cb00d7dc8bdb431a4ab41920d201d4756e";
|
sha256 = "59a3429db53c50b5c6bcc8a07f8848cb00d7dc8bdb431a4ab41920d201d4756e";
|
||||||
};
|
};
|
||||||
|
mistune_2_0 = self.callPackage ./common.nix {
|
||||||
buildInputs = [ nose ];
|
version = "2.0.0a4";
|
||||||
|
sha256 = "0i6cblmjl58kdmaa21xm0l1ls0kvjpfy45sf73fw3ws6305f628k";
|
||||||
meta = with lib; {
|
|
||||||
description = "The fastest markdown parser in pure Python";
|
|
||||||
homepage = "https://github.com/lepture/mistune";
|
|
||||||
license = licenses.bsd3;
|
|
||||||
};
|
};
|
||||||
|
mistune = mistune_0_8;
|
||||||
}
|
}
|
||||||
|
@ -6001,6 +6001,8 @@ in
|
|||||||
|
|
||||||
m2r = python3Packages.callPackage ../tools/text/m2r { };
|
m2r = python3Packages.callPackage ../tools/text/m2r { };
|
||||||
|
|
||||||
|
md2gemini = with python3.pkgs; toPythonApplication md2gemini;
|
||||||
|
|
||||||
mdbook = callPackage ../tools/text/mdbook {
|
mdbook = callPackage ../tools/text/mdbook {
|
||||||
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||||
};
|
};
|
||||||
|
@ -1303,6 +1303,10 @@ in {
|
|||||||
|
|
||||||
citeproc-py = callPackage ../development/python-modules/citeproc-py { };
|
citeproc-py = callPackage ../development/python-modules/citeproc-py { };
|
||||||
|
|
||||||
|
cjkwrap = callPackage ../development/python-modules/cjkwrap { };
|
||||||
|
|
||||||
|
cjson = callPackage ../development/python-modules/cjson { };
|
||||||
|
|
||||||
ckcc-protocol = callPackage ../development/python-modules/ckcc-protocol { };
|
ckcc-protocol = callPackage ../development/python-modules/ckcc-protocol { };
|
||||||
|
|
||||||
class-registry = callPackage ../development/python-modules/class-registry { };
|
class-registry = callPackage ../development/python-modules/class-registry { };
|
||||||
@ -3945,6 +3949,8 @@ in {
|
|||||||
|
|
||||||
mcstatus = callPackage ../development/python-modules/mcstatus { };
|
mcstatus = callPackage ../development/python-modules/mcstatus { };
|
||||||
|
|
||||||
|
md2gemini = callPackage ../development/python-modules/md2gemini { };
|
||||||
|
|
||||||
MDP = callPackage ../development/python-modules/mdp { };
|
MDP = callPackage ../development/python-modules/mdp { };
|
||||||
|
|
||||||
measurement = callPackage ../development/python-modules/measurement { };
|
measurement = callPackage ../development/python-modules/measurement { };
|
||||||
@ -4020,7 +4026,11 @@ in {
|
|||||||
|
|
||||||
mistletoe = callPackage ../development/python-modules/mistletoe { };
|
mistletoe = callPackage ../development/python-modules/mistletoe { };
|
||||||
|
|
||||||
mistune = callPackage ../development/python-modules/mistune { };
|
inherit (import ../development/python-modules/mistune self)
|
||||||
|
mistune
|
||||||
|
mistune_0_8
|
||||||
|
mistune_2_0
|
||||||
|
;
|
||||||
|
|
||||||
mitmproxy = callPackage ../development/python-modules/mitmproxy { };
|
mitmproxy = callPackage ../development/python-modules/mitmproxy { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user