2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
setuptools,
|
|
|
|
libvlc,
|
|
|
|
substituteAll,
|
|
|
|
pythonOlder,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-vlc";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "3.0.20123";
|
2022-03-05 16:20:37 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-JE+7njkqAyaEH8qSbW0SoqNsVGmCGR9JPxSPoZ5msdQ=";
|
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;
|
2024-06-05 15:53:02 +00:00
|
|
|
libvlcPath = "${libvlc}/lib/libvlc.so.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ setuptools ];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
# Module has no tests
|
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "vlc" ];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|