depot/third_party/nixpkgs/pkgs/development/python-modules/python-vlc/default.nix
Default email 3e2acf8aff Project import generated by Copybara.
GitOrigin-RevId: d42cd445dde587e9a993cd9434cb43da07c4c5de
2021-05-20 18:08:51 -05:00

40 lines
806 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, libvlc
, substituteAll
}:
buildPythonPackage rec {
pname = "python-vlc";
version = "3.0.12118";
src = fetchPypi {
inherit pname version;
hash = "sha256-Vm8vfDA/aACFHKzAFt8cbu7AlK1j4KSdh9udaYCU8fs=";
};
patches = [
# Patch path for VLC
(substituteAll {
src = ./vlc-paths.patch;
libvlcPath="${libvlc}/lib/libvlc.so.5";
})
];
propagatedBuildInputs = [
setuptools
];
doCheck = false; # no tests
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 ];
};
}