nixpkgs/pkgs/development/python-modules/commonmark/default.nix

28 lines
651 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi, isPy3k, glibcLocales, future }:
buildPythonPackage rec {
2018-12-10 17:05:42 +00:00
pname = "commonmark";
2018-11-04 10:34:55 +00:00
version = "0.8.1";
src = fetchPypi {
inherit pname version;
2018-11-04 10:34:55 +00:00
sha256 = "abcbc854e0eae5deaf52ae5e328501b78b4a0758bf98ac8bb792fce993006084";
};
preCheck = ''
export LC_ALL="en_US.UTF-8"
'';
# UnicodeEncodeError on Python 2
doCheck = isPy3k;
checkInputs = [ glibcLocales ];
propagatedBuildInputs = [ future ];
meta = with lib; {
description = "Python parser for the CommonMark Markdown spec";
homepage = https://github.com/rolandshoemaker/CommonMark-py;
license = licenses.bsd3;
};
}