python3Packages.plover-stiching: init at 0.1.0
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
setuptools,
|
||||
pytestCheckHook,
|
||||
plover,
|
||||
}:
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "plover-stitching";
|
||||
version = "0.1.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "panathea";
|
||||
repo = "plover_stitching";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-Md3LIQ73CAJlA91hfVdZZp9RJElINHYfiFFBBOYrIgs=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Make plover-stitching's blackbox test use the current blackbox_test from Plover.
|
||||
# https://github.com/panathea/plover_stitching/pull/1
|
||||
./plover_stitching_pr-1_test-blackbox_modernise_and_fix_build.patch
|
||||
];
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
plover
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"plover_stitching"
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "S-t-i-t-c-h-i-n-g support for Plover";
|
||||
homepage = "https://github.com/panathea/plover_stitching";
|
||||
license = lib.licenses.gpl3Only;
|
||||
maintainers = with lib.maintainers; [
|
||||
pandapip1
|
||||
ShamrockLee
|
||||
];
|
||||
};
|
||||
})
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
From 2751875916f23d42c81602d082fa2fd06a396fb1 Mon Sep 17 00:00:00 2001
|
||||
From: Yueh-Shun Li <shamrocklee@posteo.net>
|
||||
Date: Tue, 5 May 2026 16:34:28 +0800
|
||||
Subject: [PATCH] test_blackbox: modernize to fix build
|
||||
|
||||
Use `@blackbox_test` (decorator) from `plover_build_utils.testing`
|
||||
instead of the historical `BlackboxTester`.
|
||||
---
|
||||
test/test_blackbox.py | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/test/test_blackbox.py b/test/test_blackbox.py
|
||||
index 71eb6d0676e39e4e916b04ae9cc290dff3de9e02..e746705fe21174ac05ee3c6087f9a19171f68189 100644
|
||||
--- a/test/test_blackbox.py
|
||||
+++ b/test/test_blackbox.py
|
||||
@@ -1,12 +1,12 @@
|
||||
-from plover_build_utils.testing import BlackboxTester
|
||||
+from plover_build_utils.testing import blackbox_test
|
||||
from plover.registry import registry
|
||||
from plover import system
|
||||
|
||||
-class TestsBlackbox(BlackboxTester):
|
||||
+@blackbox_test
|
||||
+class TestsBlackbox:
|
||||
|
||||
@classmethod
|
||||
def setup_class(cls):
|
||||
- super().setup_class()
|
||||
registry.update()
|
||||
system.setup('English Stenotype')
|
||||
|
||||
@@ -12676,6 +12676,8 @@ self: super: with self; {
|
||||
|
||||
plover-python-dictionary = callPackage ../development/python-modules/plover-python-dictionary { };
|
||||
|
||||
plover-stitching = callPackage ../development/python-modules/plover-stitching { };
|
||||
|
||||
plover-stroke = callPackage ../development/python-modules/plover-stroke { };
|
||||
|
||||
plover_4 = callPackage ../development/python-modules/plover/4.nix {
|
||||
|
||||
Reference in New Issue
Block a user