Unverified Commit 197df039 authored by Mario Rodas's avatar Mario Rodas Committed by GitHub
Browse files

Merge pull request #246785 from onny/pythonmpv2

python3Packages.mpv: 1.0.1 -> 1.0.4
parents 7d2d1b6f 076a0b1e
Loading
Loading
Loading
Loading
+13 −4
Original line number Diff line number Diff line
{ lib, stdenv, buildPythonPackage, fetchFromGitHub, python, isPy27
{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, mpv
, setuptools
}:

buildPythonPackage rec {
  pname = "mpv";
  version = "1.0.1";
  disabled = isPy27;
  version = "1.0.4";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "jaseg";
    repo = "python-mpv";
    rev = "v${version}";
    hash = "sha256-UCJ1PknnWQiFciTEMxTUqDzz0Z8HEWycLuQqYeyQhoM=";
    hash = "sha256-qP5Biw4sTLioAhmMZX+Pemue2PWc3N7afAe38dwJv3U=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  buildInputs = [ mpv ];

  postPatch = ''
@@ -30,5 +38,6 @@ buildPythonPackage rec {
    description = "A python interface to the mpv media player";
    homepage = "https://github.com/jaseg/python-mpv";
    license = licenses.agpl3Plus;
    maintainers = with maintainers; [ onny ];
  };
}