1{ python3 2, fetchPypi 3, lib 4, pymeta3 5, buildPythonPackage 6}: 7buildPythonPackage rec { 8 pname = "pybars3"; 9 version = "0.9.7"; 10 format = "setuptools"; 11 12 src = fetchPypi { 13 inherit pname version; 14 hash = "sha256-ashH6QXlO5xbk2rxEskQR14nv3Z/efRSjBb5rx7A4lI="; 15 }; 16 17 propagatedBuildInputs = [ 18 pymeta3 19 ]; 20 21 checkPhase = '' 22 runHook preCheck 23 ${python3.interpreter} tests.py 24 runHook postCheck 25 ''; 26 27 pythonImportsCheck = [ 28 "pybars" 29 ]; 30 31 meta = with lib; { 32 description = "Handlebars.js template support for Python 3 and 2"; 33 homepage = "https://github.com/wbond/pybars3"; 34 changelog = "https://github.com/wbond/pybars3/releases/tag/${version}"; 35 license = licenses.lgpl3Only; 36 maintainers = with maintainers; [ jfly matusf ]; 37 }; 38}