pythonPackages.mpv: refactor move to python-modules
This commit is contained in:
parent
8edd20b7ae
commit
b11138d594
25
pkgs/development/python-modules/mpv/default.nix
Normal file
25
pkgs/development/python-modules/mpv/default.nix
Normal file
@ -0,0 +1,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;
|
||||
};
|
||||
|
||||
}
|
@ -2828,23 +2828,7 @@ in {
|
||||
|
||||
mpd2 = callPackage ../development/python-modules/mpd2 { };
|
||||
|
||||
mpv = buildPythonPackage rec {
|
||||
name = "mpv-0.1";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/m/mpv/${name}.tar.gz";
|
||||
sha256 = "0b9kd70mshdr713f3l1lbnz1q0vlg2y76h5d8liy1bzqm7hjcgfw";
|
||||
};
|
||||
buildInputs = [ pkgs.mpv ];
|
||||
patchPhase = "substituteInPlace mpv.py --replace libmpv.so ${pkgs.mpv}/lib/libmpv.so";
|
||||
|
||||
meta = with pkgs.stdenv.lib; {
|
||||
description = "A python interface to the mpv media player";
|
||||
homepage = "https://github.com/jaseg/python-mpv";
|
||||
license = licenses.agpl3;
|
||||
};
|
||||
|
||||
};
|
||||
mpv = callPackage ../development/python-modules/mpv { };
|
||||
|
||||
mrbob = callPackage ../development/python-modules/mrbob {};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user