btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / development / python-modules / kajiki / default.nix
blob4b9e78c77b86338a2c673ecd528bc7c2197b7305
2   lib,
3   babel,
4   buildPythonPackage,
5   fetchFromGitHub,
6   linetable,
7   pytestCheckHook,
8   pythonOlder,
9 }:
11 buildPythonPackage rec {
12   pname = "kajiki";
13   version = "0.9.2";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "jackrosenthal";
20     repo = pname;
21     rev = "refs/tags/v${version}";
22     hash = "sha256-EbXe4Jh2IKAYw9GE0kFgKVv9c9uAOiFFYaMF8CGaOfg=";
23   };
25   propagatedBuildInputs = [ linetable ];
27   nativeCheckInputs = [
28     babel
29     pytestCheckHook
30   ];
32   pythonImportsCheck = [ "kajiki" ];
34   meta = with lib; {
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/v${version}";
39     license = licenses.mit;
40     maintainers = with maintainers; [ onny ];
41   };