3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/mpd2/default.nix
2019-09-06 19:05:48 +02:00

30 lines
640 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, mock
}:
buildPythonPackage rec {
pname = "python-mpd2";
version = "0.5.5";
src = fetchPypi {
inherit pname version;
sha256 = "1gfrxf71xll1w6zb69znqg5c9j0g7036fsalkvqprh2id640cl3a";
};
buildInputs = [ mock ];
patchPhase = ''
sed -i -e '/tests_require/d' \
-e 's/cmdclass.*/test_suite="mpd_test",/' setup.py
'';
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 ];
};
}