nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 python3Packages,
4 fetchFromGitHub,
5}:
6
7python3Packages.buildPythonApplication rec {
8 pname = "pgsrip";
9 version = "0.1.12";
10 pyproject = true;
11
12 disabled = python3Packages.pythonOlder "3.11";
13
14 src = fetchFromGitHub {
15 owner = "ratoaq2";
16 repo = "pgsrip";
17 tag = version;
18 hash = "sha256-8UzElhMdhjZERdogtAbkcfw67blk9lOTQ09vjF5SXm4=";
19 };
20
21 build-system = [ python3Packages.poetry-core ];
22
23 dependencies = with python3Packages; [
24 babelfish
25 cleanit
26 click
27 numpy
28 opencv-python
29 pysrt
30 pytesseract
31 setuptools
32 trakit
33 ];
34
35 pythonRelaxDeps = [
36 "click"
37 "opencv-python"
38 "setuptools"
39 ];
40
41 meta = {
42 description = "Rip your PGS subtitles";
43 homepage = "https://github.com/ratoaq2/pgsrip";
44 changelog = "https://github.com/ratoaq2/pgsrip/blob/${src.tag}/CHANGELOG.md";
45 license = lib.licenses.mit;
46 maintainers = with lib.maintainers; [ eljamm ];
47 mainProgram = "pgsrip";
48 };
49}