python3Packages.python-vlc: init at 3.0.7110

Co-Authored-By: Jan Tojnar <jtojnar@gmail.com>
This commit is contained in:
Tyler Benster 2019-05-26 20:00:26 -07:00 committed by Jan Tojnar
parent 4cd2cb43fb
commit bf218e6cbc
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4
3 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,37 @@
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, vlc
, substituteAll
}:
buildPythonPackage rec {
pname = "python-vlc";
version = "3.0.7110";
src = fetchPypi {
inherit pname version;
sha256 = "0ydnqwwgpwq1kz1pjrc7629ljzdd30izymjylsbzzyq8pq6wl6w2";
};
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;
};
}

View File

@ -0,0 +1,13 @@
diff --git a/vlc.py b/vlc.py
index e3245a5..cebec09 100644
--- a/vlc.py
+++ b/vlc.py
@@ -190,7 +190,7 @@ def find_lib():
else:
# All other OSes (linux, freebsd...)
- p = find_library('vlc')
+ p = "@libvlcPath@"
try:
dll = ctypes.CDLL(p)
except OSError: # may fail

View File

@ -5139,6 +5139,8 @@ in {
vsts = callPackage ../development/python-modules/vsts { };
python-vlc = callPackage ../development/python-modules/python-vlc { };
weasyprint = callPackage ../development/python-modules/weasyprint { };
webassets = callPackage ../development/python-modules/webassets { };