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