about summary refs log tree commit diff
path: root/pkgs/development/python-modules/python-vlc/default.nix
blob: 2bf59a6334115a33a8371195c5a49ab6ff1cc341 (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
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, vlc
, substituteAll
}:

buildPythonPackage rec {
  pname = "python-vlc";
  version = "3.0.7110";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0ydnqwwgpwq1kz1pjrc7629ljzdd30izymjylsbzzyq8pq6wl6w2";
  };

  propagatedBuildInputs = [
    setuptools
  ];

  patches = [
    (substituteAll {
      src = ./vlc-paths.patch;
      libvlcPath="${vlc}/lib/libvlc.so.5";
    })
  ];

  doCheck = false; # no tests

  meta = with lib; {
    homepage = "https://wiki.videolan.org/PythonBinding";
    maintainers = with maintainers; [ tbenst ];
    description = "Python bindings for VLC, the cross-platform multimedia player and framework";
    license = licenses.lgpl21Plus;
  };
}