depot/third_party/nixpkgs/pkgs/development/python-modules/kajiki/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

42 lines
896 B
Nix

{
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";
mainProgram = "kajiki";
homepage = "https://github.com/nandoflorestan/kajiki";
changelog = "https://github.com/jackrosenthal/kajiki/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ onny ];
};
}