mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-29 17:30:19 +00:00
45 lines
889 B
Nix
45 lines
889 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
unittestCheckHook,
|
|
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "khanaa";
|
|
version = "0.1.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cakimpei";
|
|
repo = "khanaa";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-QFvvahVEld3BooINeUYJDahZyfh5xmQNtWRLAOdr6lw=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
patches = [
|
|
./001-skip-broken-test.patch
|
|
];
|
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
|
|
|
unittestFlags = [
|
|
"--start-directory=tests"
|
|
];
|
|
|
|
pythonImportsCheck = [ "khanaa" ];
|
|
|
|
meta = {
|
|
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 = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ vizid ];
|
|
};
|
|
})
|