depot/third_party/nixpkgs/pkgs/development/python-modules/chameleon/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

47 lines
958 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, importlib-metadata
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "chameleon";
version = "4.5.2";
pyproject = true;
src = fetchFromGitHub {
owner = "malthe";
repo = "chameleon";
rev = "refs/tags/${version}";
hash = "sha256-SVLKT6JeFUpF7gYkq3B7Lm9b9SG2qa6Ekp8i8xM0Xh0=";
};
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 ];
};
}