2018-03-17 14:34:40 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k, glibcLocales, future }:
|
2018-03-17 14:12:00 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-12-10 17:05:42 +00:00
|
|
|
pname = "commonmark";
|
2019-10-16 17:40:58 +01:00
|
|
|
version = "0.9.1";
|
2018-03-17 14:12:00 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-16 17:40:58 +01:00
|
|
|
sha256 = "452f9dc859be7f06631ddcb328b6919c67984aca654e5fefb3914d54691aed60";
|
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;
|
|
|
|
};
|
|
|
|
}
|