blob: a6cf342ba04e2d6a9e059af8450cd4ef6111089f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
{ lib, buildPythonPackage, fetchPypi, isPy3k, glibcLocales, future }:
buildPythonPackage rec {
pname = "commonmark";
version = "0.9.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "452f9dc859be7f06631ddcb328b6919c67984aca654e5fefb3914d54691aed60";
};
preCheck = ''
export LC_ALL="en_US.UTF-8"
'';
# UnicodeEncodeError on Python 2
doCheck = isPy3k;
nativeCheckInputs = [ glibcLocales ];
propagatedBuildInputs = [ future ];
meta = with lib; {
description = "Python parser for the CommonMark Markdown spec";
mainProgram = "cmark";
homepage = "https://github.com/rolandshoemaker/CommonMark-py";
license = licenses.bsd3;
};
}
|