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";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "3.0.12118";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-05-20 23:08:51 +00:00
|
|
|
hash = "sha256-Vm8vfDA/aACFHKzAFt8cbu7AlK1j4KSdh9udaYCU8fs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
2021-05-20 23:08:51 +00:00
|
|
|
# Patch path for VLC
|
2020-04-24 23:36:52 +00:00
|
|
|
(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
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false; # no tests
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
pythonImportsCheck = [ "vlc" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python bindings for VLC, the cross-platform multimedia player and framework";
|
2021-05-20 23:08:51 +00:00
|
|
|
homepage = "https://wiki.videolan.org/PythonBinding";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2021-05-20 23:08:51 +00:00
|
|
|
maintainers = with maintainers; [ tbenst ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|