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