Skip to content

Commit

Permalink
pgsrip: init at 0.1.11
Browse files Browse the repository at this point in the history
Co-authored-by: Sandro <[email protected]>
  • Loading branch information
eljamm and SuperSandro2000 committed Dec 21, 2024
1 parent aeb794c commit bdefb92
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions pkgs/by-name/pg/pgsrip/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
lib,
python3Packages,
fetchFromGitHub,
nix-update-script,
}:

python3Packages.buildPythonApplication rec {
pname = "pgsrip";
version = "0.1.11";
pyproject = true;

disabled = python3Packages.pythonOlder "3.9";

src = fetchFromGitHub {
owner = "ratoaq2";
repo = "pgsrip";
rev = version;
hash = "sha256-H9gZXge+m/bCq25Fv91oFZ8Cq2SRNrKhOaDrLZkjazg=";
};

build-system = [ python3Packages.poetry-core ];

dependencies = with python3Packages; [
babelfish
cleanit
click
numpy
opencv-python
pysrt
pytesseract
setuptools
trakit
];

pythonRelaxDeps = [
"numpy"
"setuptools"
];

passthru.updateScript = nix-update-script { };

meta = {
description = "Rip your PGS subtitles";
homepage = "https://github.com/ratoaq2/pgsrip";
changelog = "https://github.com/ratoaq2/pgsrip/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ eljamm ];
mainProgram = "pgsrip";
};
}

0 comments on commit bdefb92

Please sign in to comment.