summary refs log tree commit diff
path: root/pkgs/tools/video/vcsi/default.nix
blob: bb3bc4c9856c9b5f22632e7ff6d9604436844bd2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ lib, python3Packages, fetchFromGitHub, ffmpeg }:

python3Packages.buildPythonApplication rec {
  pname = "vcsi";
  version = "7.0.16";

  format = "pyproject";

  src = fetchFromGitHub {
    owner = "amietn";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-I0o6GX/TNMfU+rQtSqReblRplXPynPF6m2zg0YokmtI=";
  };

  nativeBuildInputs = [ python3Packages.poetry-core ];

  propagatedBuildInputs = with python3Packages; [
    numpy
    pillow
    jinja2
    texttable
    parsedatetime
  ];

  doCheck = false;
  pythonImportsCheck = [ "vcsi" ];

  makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ ffmpeg ]}" ];

  meta = with lib; {
    description = "Create video contact sheets";
    homepage = "https://github.com/amietn/vcsi";
    license = licenses.mit;
    maintainers = with maintainers; [ dandellion zopieux ];
  };
}