1 { lib, stdenv, buildPythonPackage, fetchFromGitHub, python, isPy27
5 buildPythonPackage rec {
10 src = fetchFromGitHub {
14 sha256 = "0ffskpynhl1252h6a05087lvpjgn1cn2z3caiv3i666dn1n79fjd";
17 buildInputs = [ mpv ];
20 substituteInPlace mpv.py \
21 --replace "sofile = ctypes.util.find_library('mpv')" \
22 'sofile = "${mpv}/lib/libmpv${stdenv.targetPlatform.extensions.sharedLibrary}"'
25 # tests impure, will error if it can't load libmpv.so
26 checkPhase = "${python.interpreter} -c 'import mpv'";
29 description = "A python interface to the mpv media player";
30 homepage = "https://github.com/jaseg/python-mpv";
31 license = licenses.agpl3Plus;