Files
nixpkgs/pkgs/development/python-modules/chameleon/default.nix
T
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

40 lines
892 B
Nix

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