nixpkgs/pkgs/development/python-modules/pybars3/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

38 lines
788 B
Nix

{
python,
fetchPypi,
lib,
pymeta3,
buildPythonPackage,
}:
buildPythonPackage rec {
pname = "pybars3";
version = "0.9.7";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-ashH6QXlO5xbk2rxEskQR14nv3Z/efRSjBb5rx7A4lI=";
};
propagatedBuildInputs = [ pymeta3 ];
checkPhase = ''
runHook preCheck
${python.interpreter} tests.py
runHook postCheck
'';
pythonImportsCheck = [ "pybars" ];
meta = {
description = "Handlebars.js template support for Python 3 and 2";
homepage = "https://github.com/wbond/pybars3";
changelog = "https://github.com/wbond/pybars3/releases/tag/${version}";
license = lib.licenses.lgpl3Only;
maintainers = with lib.maintainers; [
jfly
matusf
];
};
}