2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2018-10-17 00:29:08 +02:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-12-25 19:36:43 +01:00
|
|
|
, pythonOlder
|
2019-04-24 07:13:00 +02:00
|
|
|
, python
|
2018-10-17 00:29:08 +02:00
|
|
|
, mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-04-24 07:07:00 +02:00
|
|
|
pname = "python-mpd2";
|
2021-01-14 10:30:17 +01:00
|
|
|
version = "3.0.2";
|
2020-12-25 19:36:43 +01:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2018-10-17 00:29:08 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-14 10:30:17 +01:00
|
|
|
sha256 = "0ibl2xyj4380ai60i2bfhm8qn1sjyjbwwjmgzfcqa12wlnhck7ki";
|
2018-10-17 00:29:08 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ mock ];
|
2019-04-24 07:13:00 +02:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest mpd.tests
|
2018-10-17 00:29:08 +02:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-10-17 00:29:08 +02:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|