mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 06:47:09 +03:00
python3Packages.python-vlc: init at 3.0.7110
Co-Authored-By: Jan Tojnar <jtojnar@gmail.com>
This commit is contained in:
parent
4cd2cb43fb
commit
bf218e6cbc
37
pkgs/development/python-modules/python-vlc/default.nix
Normal file
37
pkgs/development/python-modules/python-vlc/default.nix
Normal 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;
|
||||
};
|
||||
}
|
13
pkgs/development/python-modules/python-vlc/vlc-paths.patch
Normal file
13
pkgs/development/python-modules/python-vlc/vlc-paths.patch
Normal 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
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user