1{ lib
2, buildPythonPackage
3, fetchPypi
4, setuptools
5, libvlc
6, substituteAll
7}:
8
9buildPythonPackage rec {
10 pname = "python-vlc";
11 version = "3.0.12118";
12
13 src = fetchPypi {
14 inherit pname version;
15 hash = "sha256-Vm8vfDA/aACFHKzAFt8cbu7AlK1j4KSdh9udaYCU8fs=";
16 };
17
18 patches = [
19 # Patch path for VLC
20 (substituteAll {
21 src = ./vlc-paths.patch;
22 libvlcPath="${libvlc}/lib/libvlc.so.5";
23 })
24 ];
25
26 propagatedBuildInputs = [
27 setuptools
28 ];
29
30 doCheck = false; # no tests
31
32 pythonImportsCheck = [ "vlc" ];
33
34 meta = with lib; {
35 description = "Python bindings for VLC, the cross-platform multimedia player and framework";
36 homepage = "https://wiki.videolan.org/PythonBinding";
37 license = licenses.lgpl21Plus;
38 maintainers = with maintainers; [ tbenst ];
39 };
40}