2019-05-27 04:00:26 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools
|
|
|
|
, vlc
|
|
|
|
, substituteAll
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-vlc";
|
2020-05-09 11:01:58 +01:00
|
|
|
version = "3.0.9113";
|
2019-05-27 04:00:26 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-09 11:01:58 +01:00
|
|
|
sha256 = "5422b79d347b6419008ee91cfd9663edc37eaf2a0bd8fb9017d4cc2e5f249dda";
|
2019-05-27 04:00:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./vlc-paths.patch;
|
|
|
|
libvlcPath="${vlc}/lib/libvlc.so.5";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|