depot/third_party/nixpkgs/pkgs/development/python-modules/chameleon/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

39 lines
942 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
importlib-metadata,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "chameleon";
version = "4.5.4";
pyproject = true;
src = fetchFromGitHub {
owner = "malthe";
repo = "chameleon";
rev = "refs/tags/${version}";
hash = "sha256-TbXx3reRpUqnMVDsr38FM1SLgARjqXAduO3k87U5TIg=";
};
build-system = [ setuptools ];
dependencies = lib.optionals (pythonOlder "3.10") [ importlib-metadata ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "chameleon" ];
meta = with lib; {
changelog = "https://github.com/malthe/chameleon/blob/${version}/CHANGES.rst";
description = "Fast HTML/XML Template Compiler";
downloadPage = "https://github.com/malthe/chameleon";
homepage = "https://chameleon.readthedocs.io";
license = licenses.bsd0;
maintainers = with maintainers; [ domenkozar ];
};
}