2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, python, fetchPypi, isPy3k, glibcLocales }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pystache";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "0.6.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-19 01:06:50 +00:00
|
|
|
sha256 = "93bf92b2149a4c4b58d12142e2c4c6dd5c08d89e4c95afccd4b6efe2ee1d470d";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
|
|
|
|
|
|
buildInputs = [ glibcLocales ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest discover
|
|
|
|
'';
|
|
|
|
|
|
|
|
# SyntaxError Python 3
|
|
|
|
# https://github.com/defunkt/pystache/issues/181
|
|
|
|
doCheck = !isPy3k;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A framework-agnostic, logic-free templating system inspired by ctemplate and et";
|
|
|
|
homepage = "https://github.com/defunkt/pystache";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|