nixpkgs/pkgs/development/python-modules/mpd2/default.nix
2020-12-25 20:56:58 +01:00

34 lines
663 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, pythonOlder
, python
, mock
}:
buildPythonPackage rec {
pname = "python-mpd2";
version = "3.0.1";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "772fa6861273bb9f363a97987c2c45ca3965eb770570f1f02566efec9c89fc5f";
};
buildInputs = [ mock ];
checkPhase = ''
${python.interpreter} -m unittest mpd.tests
'';
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 ];
};
}