NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
16.4k stars 12.9k forks source link

Package request: python-ffmpeg #320143

Open catleeball opened 1 week ago

catleeball commented 1 week ago

Project description

From its github:

A python binding for FFmpeg which provides sync and async APIs

Metadata

Notes

Note that ffmpeg is a runtime dependency, but isn't needed to build the package.

With ffmpeg installed globally in my /etc/nixos/configuration.nix, I checked and was able to run it using a pretty simple nix shell that installs it from pip if that's helpful:

let
  pkgs = import <nixpkgs> {};
  pythonPackages = pkgs.python3Packages;
in
pkgs.mkShell rec {
  venvDir = "./.venv";
  buildInputs = with pythonPackages; [
    python
    venvShellHook
  ];

  postVenvCreation = ''
    unset SOURCE_DATE_EPOCH
    pip install python-ffmpeg
  '';

  postShellHook = ''
    unset SOURCE_DATE_EPOCH
  '';
}

Add a :+1: reaction to issues you find important.

Roshaen commented 1 week ago

320185