f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
45 lines
872 B
Nix
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 ];
|
|
};
|
|
}
|