2018-03-17 14:34:40 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k, glibcLocales, future }:
|
2018-03-17 14:12:00 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "CommonMark";
|
2018-03-17 14:34:40 +00:00
|
|
|
version = "0.7.5";
|
2018-03-17 14:12:00 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-03-17 14:34:40 +00:00
|
|
|
sha256 = "4dfbbd1dbc669a9b71a015032b2bbe5c4b019ca8b6ca410d89cf7020de46d2c0";
|
2018-03-17 14:12:00 +00:00
|
|
|
};
|
|
|
|
|
2018-03-17 14:34:40 +00:00
|
|
|
preCheck = ''
|
|
|
|
export LC_ALL="en_US.UTF-8"
|
|
|
|
'';
|
2018-03-17 14:12:00 +00:00
|
|
|
|
2018-03-17 14:34:40 +00:00
|
|
|
# UnicodeEncodeError on Python 2
|
|
|
|
doCheck = isPy3k;
|
2018-03-17 14:12:00 +00:00
|
|
|
|
2018-03-17 14:34:40 +00:00
|
|
|
checkInputs = [ glibcLocales ];
|
2018-03-17 14:12:00 +00:00
|
|
|
propagatedBuildInputs = [ future ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python parser for the CommonMark Markdown spec";
|
|
|
|
homepage = https://github.com/rolandshoemaker/CommonMark-py;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|