mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
34 lines
657 B
Nix
34 lines
657 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy27
|
|
, numpy
|
|
, ffmpeg
|
|
, pkg-config
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "av";
|
|
version = "8.0.3";
|
|
disabled = isPy27; # setup.py no longer compatible
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "521814309c91d526b6b5c9517018aef2dd12bc3d86351037db69aa67730692b8";
|
|
};
|
|
|
|
checkInputs = [ numpy ];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ ffmpeg ];
|
|
|
|
# Tests require downloading files from internet
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Pythonic bindings for FFmpeg/Libav";
|
|
homepage = "https://github.com/mikeboers/PyAV/";
|
|
license = lib.licenses.bsd2;
|
|
};
|
|
}
|