mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 22:23:15 +00:00
34 lines
646 B
Nix
34 lines
646 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, python
|
|
, mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-mpd2";
|
|
version = "3.0.3";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1ikvn2qv6cnbjscpbk6hhsqg34h832mxgg6hp1mf4d8d6nwdx4sn";
|
|
};
|
|
|
|
buildInputs = [ mock ];
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} -m unittest mpd.tests
|
|
'';
|
|
|
|
meta = with 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 hexa ];
|
|
};
|
|
|
|
}
|