depot/third_party/nixpkgs/pkgs/development/python-modules/khanaa/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

45 lines
872 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
unittestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "khanaa";
version = "0.1.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "cakimpei";
repo = "khanaa";
rev = "refs/tags/v${version}";
hash = "sha256-QFvvahVEld3BooINeUYJDahZyfh5xmQNtWRLAOdr6lw=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ unittestCheckHook ];
unittestFlagsArray = [
"-s"
"tests"
];
pythonImportsCheck = [ "khanaa" ];
meta = with lib; {
description = "Tool to make spelling Thai more convenient";
homepage = "https://github.com/cakimpei/khanaa";
changelog = "https://github.com/cakimpei/khanaa/blob/main/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ vizid ];
};
}