2018-10-16 23:29:08 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-04-24 06:13:00 +01:00
|
|
|
, python
|
2018-10-16 23:29:08 +01:00
|
|
|
, mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-04-24 06:07:00 +01:00
|
|
|
pname = "python-mpd2";
|
2019-04-24 06:13:00 +01:00
|
|
|
version = "1.0.0";
|
2018-10-16 23:29:08 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-24 06:13:00 +01:00
|
|
|
extension = "tar.bz2";
|
|
|
|
sha256 = "772fa6861273bb9f363a97987c2c45ca3965eb770570f1f02566efec9c89fc5f";
|
2018-10-16 23:29:08 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ mock ];
|
2019-04-24 06:13:00 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest mpd.tests
|
2018-10-16 23:29:08 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|