1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-20 00:19:25 +03:00
nixpkgs/pkgs/development/python-modules/ffmpeg-python/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
973 B
Nix
Raw Normal View History

{
lib,
buildPythonPackage,
fetchFromGitHub,
substituteAll,
setuptools,
future,
pytestCheckHook,
pytest-mock,
ffmpeg_4,
}:
buildPythonPackage {
pname = "ffmpeg-python";
version = "0.2.0-unstable-2022-07-11";
pyproject = true;
src = fetchFromGitHub {
owner = "kkroening";
repo = "ffmpeg-python";
rev = "df129c7ba30aaa9ffffb81a48f53aa7253b0b4e6";
hash = "sha256-jPiFhYRwfuS+vo6LsLw0+65NWy2A+B+EdC8SewZTRP4=";
};
patches = [
(substituteAll {
src = ./ffmpeg-location.patch;
ffmpeg = ffmpeg_4;
})
];
build-system = [ setuptools ];
dependencies = [ future ];
nativeCheckInputs = [
pytestCheckHook
pytest-mock
];
pythonImportsCheck = [ "ffmpeg" ];
meta = {
description = "Python bindings for FFmpeg - with complex filtering support";
homepage = "https://github.com/kkroening/ffmpeg-python";
license = lib.licenses.asl20;
2024-08-09 23:04:17 +01:00
maintainers = [ lib.maintainers.emily ];
};
}