2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools
|
2020-10-07 09:15:18 +00:00
|
|
|
, libvlc
|
2020-04-24 23:36:52 +00:00
|
|
|
, substituteAll
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-vlc";
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "3.0.11115";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-20 17:08:02 +00:00
|
|
|
sha256 = "a4d3bdddfce84a8fb1b2d5447193a0239c55c16ca246e5194d48efd59c4e236b";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./vlc-paths.patch;
|
2020-10-07 09:15:18 +00:00
|
|
|
libvlcPath="${libvlc}/lib/libvlc.so.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false; # no tests
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://wiki.videolan.org/PythonBinding";
|
|
|
|
maintainers = with maintainers; [ tbenst ];
|
|
|
|
description = "Python bindings for VLC, the cross-platform multimedia player and framework";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
};
|
|
|
|
}
|