mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 02:05:51 +03:00
normcap: init at 0.4.4
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
This commit is contained in:
parent
05f82739df
commit
cbe40c63c0
52
pkgs/applications/graphics/normcap/default.nix
Normal file
52
pkgs/applications/graphics/normcap/default.nix
Normal file
@ -0,0 +1,52 @@
|
||||
# From NUR https://github.com/nix-community/nur-combined/blob/6bddae47680482383b5769dd3aa7d82b88e6cbc8/repos/renesat/pkgs/normcap/default.nix
|
||||
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
python3,
|
||||
fetchFromGitHub,
|
||||
tesseract4,
|
||||
leptonica,
|
||||
wl-clipboard
|
||||
}:
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "normcap";
|
||||
version = "0.4.4";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dynobo";
|
||||
repo = "normcap";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-dShtmoqS9TC3PHuwq24OEOhYfBHGhDCma8Du8QCkFuI=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
wl-clipboard
|
||||
];
|
||||
|
||||
nativeBuildInputs = with python3.pkgs; [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
tesseract4
|
||||
leptonica
|
||||
pyside6
|
||||
|
||||
# Test
|
||||
toml
|
||||
pytest-qt
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml --replace 'PySide6-Essentials = "6.5.1"' ""
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "OCR powered screen-capture tool to capture information instead of images";
|
||||
homepage = "https://dynobo.github.io/normcap/";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ cafkafk ];
|
||||
};
|
||||
}
|
@ -34541,6 +34541,8 @@ with pkgs;
|
||||
|
||||
nomacs = libsForQt5.callPackage ../applications/graphics/nomacs { };
|
||||
|
||||
normcap = callPackage ../applications/graphics/normcap { };
|
||||
|
||||
notepad-next = libsForQt5.callPackage ../applications/editors/notepad-next { };
|
||||
|
||||
notepadqq = libsForQt5.callPackage ../applications/editors/notepadqq { };
|
||||
|
Loading…
Reference in New Issue
Block a user