mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
34 lines
645 B
Nix
34 lines
645 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, python
|
|
, mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-mpd2";
|
|
version = "3.0.5";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-bxv/2TuaMvwBipu/NIdQW1Lg11fsNAZpBcYKkS1JI4Q=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
|
|
}
|