mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
46 lines
872 B
Nix
46 lines
872 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
unittestCheckHook,
|
|
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "khanaa";
|
|
version = "0.0.6";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cakimpei";
|
|
repo = "khanaa";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-BzxNHYMkp5pdJYQ80EI5jlP654yX9woW7wz1jArCln4=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|