depot/third_party/nixpkgs/pkgs/development/python-modules/mpd2/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

33 lines
646 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, python
, mock
}:
buildPythonPackage rec {
pname = "python-mpd2";
version = "3.0.4";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "1r8saq1460yfa0sxfrvxqs2r453wz2xchlc9gzbpqznr49786rvs";
};
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 ];
};
}