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