1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-20 16:39:31 +03:00
nixpkgs/pkgs/development/python-modules/python-vlc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
897 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, setuptools
2020-09-25 05:37:12 -05:00
, libvlc
, substituteAll
, pythonOlder
}:
buildPythonPackage rec {
pname = "python-vlc";
version = "3.0.16120";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-kvmP7giPcr1tBjs7MxLQvSmzfnrWXd6zpzAzIDAMKAc=";
};
patches = [
# Patch path for VLC
(substituteAll {
src = ./vlc-paths.patch;
2020-09-25 05:37:12 -05:00
libvlcPath="${libvlc}/lib/libvlc.so.5";
})
];
propagatedBuildInputs = [
setuptools
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"vlc"
];
meta = with lib; {
description = "Python bindings for VLC, the cross-platform multimedia player and framework";
homepage = "https://wiki.videolan.org/PythonBinding";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ tbenst ];
};
}