depot/third_party/nixpkgs/pkgs/development/python-modules/chevron/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

32 lines
700 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
python,
}:
buildPythonPackage {
pname = "chevron";
version = "0.13.1";
format = "setuptools";
# No tests available in the PyPI tarball
src = fetchFromGitHub {
owner = "noahmorrison";
repo = "chevron";
rev = "0.13.1";
sha256 = "0l1ik8dvi6bgyb3ym0w4ii9dh25nzy0x4yawf4zbcyvvcb6af470";
};
checkPhase = ''
${python.interpreter} test_spec.py
'';
meta = with lib; {
homepage = "https://github.com/noahmorrison/chevron";
description = "Python implementation of the mustache templating language";
mainProgram = "chevron";
license = licenses.mit;
maintainers = with maintainers; [ dhkl ];
};
}