1{ lib, buildPythonPackage, python, fetchPypi, isPy3k, glibcLocales }: 2 3buildPythonPackage rec { 4 pname = "pystache"; 5 version = "0.5.4"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "f7bbc265fb957b4d6c7c042b336563179444ab313fb93a719759111eabd3b85a"; 10 }; 11 12 LC_ALL = "en_US.UTF-8"; 13 14 buildInputs = [ glibcLocales ]; 15 16 checkPhase = '' 17 ${python.interpreter} -m unittest discover 18 ''; 19 20 # SyntaxError Python 3 21 # https://github.com/defunkt/pystache/issues/181 22 doCheck = !isPy3k; 23 24 meta = with lib; { 25 description = "A framework-agnostic, logic-free templating system inspired by ctemplate and et"; 26 homepage = "https://github.com/defunkt/pystache"; 27 license = licenses.mit; 28 }; 29}