2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
isPy3k,
|
|
|
|
glibcLocales,
|
|
|
|
future,
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "commonmark";
|
|
|
|
version = "0.9.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "452f9dc859be7f06631ddcb328b6919c67984aca654e5fefb3914d54691aed60";
|
|
|
|
};
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export LC_ALL="en_US.UTF-8"
|
|
|
|
'';
|
|
|
|
|
|
|
|
# UnicodeEncodeError on Python 2
|
|
|
|
doCheck = isPy3k;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ glibcLocales ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ future ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python parser for the CommonMark Markdown spec";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "cmark";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/rolandshoemaker/CommonMark-py";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|