1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchPypi
5, pkg-config
6, ffmpeg
7}:
8
9buildPythonPackage rec {
10 pname = "ha-av";
11 version = "8.0.4rc1";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.5";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "sha256-txdi2/X6upqrACeHhHpEh4tGqgPpW/dyWda8y++7c3M=";
19 };
20
21 nativeBuildInputs = [
22 pkg-config
23 ];
24
25 buildInputs = [
26 ffmpeg
27 ];
28
29 pythonImportsCheck = [
30 "av"
31 "av._core"
32 ];
33
34 # tests fail to import av._core
35 doCheck = false;
36
37 meta = with lib; {
38 homepage = "https://pypi.org/project/ha-av/";
39 description = "Pythonic bindings for FFmpeg's libraries";
40 license = licenses.bsd3;
41 maintainers = with maintainers; [ hexa ];
42 };
43}