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