Loading pkgs/by-name/no/normcap/package.nix +28 −7 Original line number Diff line number Diff line Loading @@ -7,6 +7,8 @@ , wl-clipboard , libnotify , xorg , makeDesktopItem , copyDesktopItems }: let Loading Loading @@ -37,12 +39,6 @@ ps.buildPythonApplication rec { hash = "sha256-iMlW8oEt4OSipJaQ2XzBZeBVqiZP/C1sM0f5LYjv7/A="; }; postPatch = '' # disable coverage testing substituteInPlace pyproject.toml \ --replace-fail "addopts = [" "addopts_ = [" ''; pythonRemoveDeps = [ "pyside6-essentials" ]; Loading @@ -51,11 +47,15 @@ ps.buildPythonApplication rec { "shiboken6" ]; nativeBuildInputs = [ build-system = [ ps.hatchling ps.babel ]; nativeBuildInputs = [ copyDesktopItems ]; dependencies = [ ps.pyside6 ps.jeepney Loading @@ -69,8 +69,15 @@ ps.buildPythonApplication rec { ) ''; postInstall = lib.optionalString stdenv.hostPlatform.isLinux '' mkdir -p $out/share/pixmaps ln -s $out/${python3.sitePackages}/normcap/resources/icons/normcap.png $out/share/pixmaps/ ''; nativeCheckInputs = wrapperDeps ++ [ ps.pytestCheckHook ps.pytest-cov-stub ps.pytest-instafail ps.pytest-qt ps.toml ] ++ lib.optionals stdenv.hostPlatform.isLinux [ Loading Loading @@ -136,6 +143,20 @@ ps.buildPythonApplication rec { "tests/tests_gui/test_loading_indicator.py" ]; desktopItems = [ (makeDesktopItem { name = "com.github.dynobo.normcap"; desktopName = "NormCap"; genericName = "OCR powered screen-capture tool"; comment = "Extract text from an image directly into clipboard"; exec = "normcap"; icon = "normcap"; terminal = false; categories = ["Utility" "Office"]; keywords = ["Text" "Extraction" "OCR"]; }) ]; meta = with lib; { description = "OCR powered screen-capture tool to capture information instead of images"; homepage = "https://dynobo.github.io/normcap/"; Loading Loading
pkgs/by-name/no/normcap/package.nix +28 −7 Original line number Diff line number Diff line Loading @@ -7,6 +7,8 @@ , wl-clipboard , libnotify , xorg , makeDesktopItem , copyDesktopItems }: let Loading Loading @@ -37,12 +39,6 @@ ps.buildPythonApplication rec { hash = "sha256-iMlW8oEt4OSipJaQ2XzBZeBVqiZP/C1sM0f5LYjv7/A="; }; postPatch = '' # disable coverage testing substituteInPlace pyproject.toml \ --replace-fail "addopts = [" "addopts_ = [" ''; pythonRemoveDeps = [ "pyside6-essentials" ]; Loading @@ -51,11 +47,15 @@ ps.buildPythonApplication rec { "shiboken6" ]; nativeBuildInputs = [ build-system = [ ps.hatchling ps.babel ]; nativeBuildInputs = [ copyDesktopItems ]; dependencies = [ ps.pyside6 ps.jeepney Loading @@ -69,8 +69,15 @@ ps.buildPythonApplication rec { ) ''; postInstall = lib.optionalString stdenv.hostPlatform.isLinux '' mkdir -p $out/share/pixmaps ln -s $out/${python3.sitePackages}/normcap/resources/icons/normcap.png $out/share/pixmaps/ ''; nativeCheckInputs = wrapperDeps ++ [ ps.pytestCheckHook ps.pytest-cov-stub ps.pytest-instafail ps.pytest-qt ps.toml ] ++ lib.optionals stdenv.hostPlatform.isLinux [ Loading Loading @@ -136,6 +143,20 @@ ps.buildPythonApplication rec { "tests/tests_gui/test_loading_indicator.py" ]; desktopItems = [ (makeDesktopItem { name = "com.github.dynobo.normcap"; desktopName = "NormCap"; genericName = "OCR powered screen-capture tool"; comment = "Extract text from an image directly into clipboard"; exec = "normcap"; icon = "normcap"; terminal = false; categories = ["Utility" "Office"]; keywords = ["Text" "Extraction" "OCR"]; }) ]; meta = with lib; { description = "OCR powered screen-capture tool to capture information instead of images"; homepage = "https://dynobo.github.io/normcap/"; Loading