2019-05-27 03:00:26 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools
|
2020-09-25 10:37:12 +00:00
|
|
|
, libvlc
|
2019-05-27 03:00:26 +00:00
|
|
|
, substituteAll
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-vlc";
|
2021-05-08 18:20:41 +00:00
|
|
|
version = "3.0.12118";
|
2019-05-27 03:00:26 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-05-08 18:20:41 +00:00
|
|
|
hash = "sha256-Vm8vfDA/aACFHKzAFt8cbu7AlK1j4KSdh9udaYCU8fs=";
|
2019-05-27 03:00:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
2021-05-08 18:20:41 +00:00
|
|
|
# Patch path for VLC
|
2019-05-27 03:00:26 +00:00
|
|
|
(substituteAll {
|
|
|
|
src = ./vlc-paths.patch;
|
2020-09-25 10:37:12 +00:00
|
|
|
libvlcPath="${libvlc}/lib/libvlc.so.5";
|
2019-05-27 03:00:26 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-05-08 18:20:41 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2019-05-27 03:00:26 +00:00
|
|
|
doCheck = false; # no tests
|
|
|
|
|
2021-05-08 18:20:41 +00:00
|
|
|
pythonImportsCheck = [ "vlc" ];
|
|
|
|
|
2019-05-27 03:00:26 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python bindings for VLC, the cross-platform multimedia player and framework";
|
2021-05-08 18:20:41 +00:00
|
|
|
homepage = "https://wiki.videolan.org/PythonBinding";
|
2019-05-27 03:00:26 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2021-05-08 18:20:41 +00:00
|
|
|
maintainers = with maintainers; [ tbenst ];
|
2019-05-27 03:00:26 +00:00
|
|
|
};
|
|
|
|
}
|