summary refs log tree commit diff
path: root/pkgs/development/python-modules/ha-av/default.nix
blob: af5f5f31ab61669c877b396e5449285abcdfad2f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, pkg-config
, ffmpeg
}:

buildPythonPackage rec {
  pname = "ha-av";
  version = "8.0.4rc1";
  format = "setuptools";

  disabled = pythonOlder "3.5";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-txdi2/X6upqrACeHhHpEh4tGqgPpW/dyWda8y++7c3M=";
  };

  nativeBuildInputs = [
    pkg-config
  ];

  buildInputs = [
    ffmpeg
  ];

  pythonImportsCheck = [
    "av"
    "av._core"
  ];

  # tests fail to import av._core
  doCheck = false;

  meta = with lib; {
    homepage = "https://pypi.org/project/ha-av/";
    description = "Pythonic bindings for FFmpeg's libraries";
    license = licenses.bsd3;
    maintainers = with maintainers; [ hexa ];
  };
}