nixpkgs-suyu/pkgs/development/python-modules/mpd2/default.nix

34 lines
646 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
2020-12-25 19:36:43 +01:00
, pythonOlder
2019-04-24 07:13:00 +02:00
, python
, mock
}:
buildPythonPackage rec {
2019-04-24 07:07:00 +02:00
pname = "python-mpd2";
2021-02-02 17:14:23 +01:00
version = "3.0.4";
2020-12-25 19:36:43 +01:00
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
2021-02-02 17:14:23 +01:00
sha256 = "1r8saq1460yfa0sxfrvxqs2r453wz2xchlc9gzbpqznr49786rvs";
};
buildInputs = [ mock ];
2019-04-24 07:13:00 +02:00
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 ];
};
}