summary refs log tree commit diff
path: root/pkgs/development/python-modules/mpv/default.nix
blob: cd9ca9451b8b0ae1d6d8562fee30e83315ae9a7c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv
, buildPythonPackage
, fetchPypi
, pkgs
}:

buildPythonPackage rec {
  pname = "mpv";
  version = "0.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0b9kd70mshdr713f3l1lbnz1q0vlg2y76h5d8liy1bzqm7hjcgfw";
  };

  buildInputs = [ pkgs.mpv ];
  patchPhase = "substituteInPlace mpv.py --replace libmpv.so ${pkgs.mpv}/lib/libmpv.so";

  meta = with stdenv.lib; {
    description = "A python interface to the mpv media player";
    homepage = "https://github.com/jaseg/python-mpv";
    license = licenses.agpl3;
  };

}