a66bca1520
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
47 lines
897 B
Nix
47 lines
897 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, setuptools
|
|
, libvlc
|
|
, substituteAll
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-vlc";
|
|
version = "3.0.18121";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-JFUDFKPm7VX9NHsAlJHJi4ZfnfoFqS6InXsKIhDnSFs=";
|
|
};
|
|
|
|
patches = [
|
|
# Patch path for VLC
|
|
(substituteAll {
|
|
src = ./vlc-paths.patch;
|
|
libvlcPath="${libvlc}/lib/libvlc.so.5";
|
|
})
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
# Module has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"vlc"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python bindings for VLC, the cross-platform multimedia player and framework";
|
|
homepage = "https://wiki.videolan.org/PythonBinding";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = with maintainers; [ tbenst ];
|
|
};
|
|
}
|