pythonPackages.mpd2: refactor move to python-modules
This commit is contained in:
parent
f3548b46e7
commit
8edd20b7ae
29
pkgs/development/python-modules/mpd2/default.nix
Normal file
29
pkgs/development/python-modules/mpd2/default.nix
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, mock
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "mpd2";
|
||||||
|
version = "0.5.5";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "1gfrxf71xll1w6zb69znqg5c9j0g7036fsalkvqprh2id640cl3a";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ mock ];
|
||||||
|
patchPhase = ''
|
||||||
|
sed -i -e '/tests_require/d' \
|
||||||
|
-e 's/cmdclass.*/test_suite="mpd_test",/' setup.py
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "A Python client module for the Music Player Daemon";
|
||||||
|
homepage = "https://github.com/Mic92/python-mpd2";
|
||||||
|
license = licenses.lgpl3Plus;
|
||||||
|
maintainers = with maintainers; [ rvl mic92 ];
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -2826,28 +2826,7 @@ in {
|
|||||||
|
|
||||||
mpd = callPackage ../development/python-modules/mpd { };
|
mpd = callPackage ../development/python-modules/mpd { };
|
||||||
|
|
||||||
mpd2 = buildPythonPackage rec {
|
mpd2 = callPackage ../development/python-modules/mpd2 { };
|
||||||
name = "mpd2-${version}";
|
|
||||||
version = "0.5.5";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/p/python-mpd2/python-mpd2-${version}.tar.bz2";
|
|
||||||
sha256 = "1gfrxf71xll1w6zb69znqg5c9j0g7036fsalkvqprh2id640cl3a";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = with self; [ mock ];
|
|
||||||
patchPhase = ''
|
|
||||||
sed -i -e '/tests_require/d' \
|
|
||||||
-e 's/cmdclass.*/test_suite="mpd_test",/' setup.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "A Python client module for the Music Player Daemon";
|
|
||||||
homepage = "https://github.com/Mic92/python-mpd2";
|
|
||||||
license = licenses.lgpl3Plus;
|
|
||||||
maintainers = with maintainers; [ rvl mic92 ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
mpv = buildPythonPackage rec {
|
mpv = buildPythonPackage rec {
|
||||||
name = "mpv-0.1";
|
name = "mpv-0.1";
|
||||||
|
Loading…
Reference in New Issue
Block a user