nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 babel,
4 buildPythonPackage,
5 fetchFromGitHub,
6 linetable,
7 pytestCheckHook,
8 hatchling,
9}:
10
11buildPythonPackage rec {
12 pname = "kajiki";
13 version = "1.0.2";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "jackrosenthal";
18 repo = "kajiki";
19 tag = "v${version}";
20 hash = "sha256-bAgUMA9PlwsO7FRjwiKCsFffLWNU+Go1DToblmyWprk=";
21 };
22
23 propagatedBuildInputs = [ linetable ];
24
25 build-system = [ hatchling ];
26
27 nativeCheckInputs = [
28 babel
29 pytestCheckHook
30 ];
31
32 pythonImportsCheck = [ "kajiki" ];
33
34 meta = {
35 description = "Module provides fast well-formed XML templates";
36 mainProgram = "kajiki";
37 homepage = "https://github.com/nandoflorestan/kajiki";
38 changelog = "https://github.com/jackrosenthal/kajiki/releases/tag/${src.tag}";
39 license = lib.licenses.mit;
40 maintainers = with lib.maintainers; [ onny ];
41 };
42}