Merge pull request #295223 from ViZiD/khanaa

python311Packages.khanaa: init at 0.0.6
This commit is contained in:
OTABI Tomoya 2024-03-19 00:00:11 +09:00 committed by GitHub
commit 82540cbb87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,46 @@
{ 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 = "A 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 ];
};
}

View File

@ -6253,6 +6253,8 @@ self: super: with self; {
inherit (pkgs) keyutils;
};
khanaa = callPackage ../development/python-modules/khanaa {};
kicad = toPythonModule (pkgs.kicad.override {
python3 = python;
}).src;