about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/kajiki/default.nix
blob: e11e16fbedbc88fa0b003a67c99c40843c04006c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ lib
, babel
, buildPythonPackage
, fetchFromGitHub
, linetable
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
  pname = "kajiki";
  version = "0.9.2";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "jackrosenthal";
    repo = pname;
    rev = "refs/tags/v${version}";
    hash = "sha256-EbXe4Jh2IKAYw9GE0kFgKVv9c9uAOiFFYaMF8CGaOfg=";
  };

  propagatedBuildInputs = [
    linetable
  ];

  nativeCheckInputs = [
    babel
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "kajiki"
  ];

  meta = with lib; {
    description = "Module provides fast well-formed XML templates";
    homepage = "https://github.com/nandoflorestan/kajiki";
    changelog = "https://github.com/jackrosenthal/kajiki/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ onny ];
  };
}