Unverified Commit 7f13e3da authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

vcsi: cleanup (#381742)

parents 1128e89f 3f804eb5
Loading
Loading
Loading
Loading
+26 −18
Original line number Diff line number Diff line
@@ -3,49 +3,57 @@
  python3Packages,
  fetchFromGitHub,
  ffmpeg,
  versionCheckHook,
}:

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

  format = "pyproject";
  pyproject = true;

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

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

  nativeCheckInputs = [
    python3Packages.pytestCheckHook
  pythonRelaxDeps = [
    "numpy"
    "pillow"
  ];

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

  pythonRelaxDeps = [
    "numpy"
    "pillow"
  ];

  pythonImportsCheck = [ "vcsi" ];

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

  meta = with lib; {
  nativeCheckInputs =
    [
      versionCheckHook
    ]
    ++ (with python3Packages; [
      pytestCheckHook
    ]);
  versionCheckProgramArg = [ "--version" ];

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