1{ lib
2, babel
3, buildPythonPackage
4, fetchFromGitHub
5, linetable
6, pytestCheckHook
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "kajiki";
12 version = "0.9.2";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "jackrosenthal";
19 repo = pname;
20 rev = "refs/tags/v${version}";
21 hash = "sha256-EbXe4Jh2IKAYw9GE0kFgKVv9c9uAOiFFYaMF8CGaOfg=";
22 };
23
24 propagatedBuildInputs = [
25 linetable
26 ];
27
28 nativeCheckInputs = [
29 babel
30 pytestCheckHook
31 ];
32
33 pythonImportsCheck = [
34 "kajiki"
35 ];
36
37 meta = with lib; {
38 description = "Module provides fast well-formed XML templates";
39 homepage = "https://github.com/nandoflorestan/kajiki";
40 changelog = "https://github.com/jackrosenthal/kajiki/releases/tag/v${version}";
41 license = licenses.mit;
42 maintainers = with maintainers; [ onny ];
43 };
44}