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