Files
nixpkgs/pkgs/development/python-modules/kajiki/default.nix
Ihar Hrachyshka cca3b04b44 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 19:01:23 +01:00

46 lines
927 B
Nix

{
lib,
babel,
buildPythonPackage,
fetchFromGitHub,
linetable,
pytestCheckHook,
pythonOlder,
hatchling,
}:
buildPythonPackage rec {
pname = "kajiki";
version = "1.0.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "jackrosenthal";
repo = "kajiki";
tag = "v${version}";
hash = "sha256-5qsRxKeWCndi2r1HaIX/bm92oOWU4J4eM9aud6ai8ZQ=";
};
propagatedBuildInputs = [ linetable ];
build-system = [ hatchling ];
nativeCheckInputs = [
babel
pytestCheckHook
];
pythonImportsCheck = [ "kajiki" ];
meta = {
description = "Module provides fast well-formed XML templates";
mainProgram = "kajiki";
homepage = "https://github.com/nandoflorestan/kajiki";
changelog = "https://github.com/jackrosenthal/kajiki/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ onny ];
};
}