2018-10-16 23:29:08 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-12-25 18:36:43 +00:00
|
|
|
, pythonOlder
|
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";
|
2020-12-25 18:36:43 +00:00
|
|
|
version = "3.0.1";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2018-10-16 23:29:08 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-05 21:03:08 +00:00
|
|
|
sha256 = "0fxssbmnv44m03shjyvbqslc69b0160702j2s0flgvdxjggrnbjj";
|
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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|