about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/chameleon/default.nix
blob: 3c97002f5dcd15ced0066a16b9588681b83557a6 (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
45
46
47
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, importlib-metadata
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
  pname = "chameleon";
  version = "4.5.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "malthe";
    repo = "chameleon";
    rev = "refs/tags/${version}";
    hash = "sha256-SVLKT6JeFUpF7gYkq3B7Lm9b9SG2qa6Ekp8i8xM0Xh0=";
  };

  build-system = [
    setuptools
  ];

  dependencies = lib.optionals (pythonOlder "3.10") [
    importlib-metadata
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "chameleon"
  ];

  meta = with lib; {
    changelog = "https://github.com/malthe/chameleon/blob/${version}/CHANGES.rst";
    description = "Fast HTML/XML Template Compiler";
    downloadPage = "https://github.com/malthe/chameleon";
    homepage = "https://chameleon.readthedocs.io";
    license = licenses.bsd0;
    maintainers = with maintainers; [ domenkozar ];
  };

}