Merge pull request #229171 from mweinelt/python-mpd2-3.1.0

python310Packages.mpd2: 3.0.5 -> 3.1.0
This commit is contained in:
Martin Weinelt 2023-05-10 20:58:11 +02:00 committed by GitHub
commit 718be93244
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,28 +2,34 @@
, buildPythonPackage
, fetchPypi
, pythonOlder
, python
, mock
, twisted
, unittestCheckHook
}:
buildPythonPackage rec {
pname = "python-mpd2";
version = "3.0.5";
version = "3.1.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-bxv/2TuaMvwBipu/NIdQW1Lg11fsNAZpBcYKkS1JI4Q=";
hash = "sha256-8zws2w1rqnSjZyTzjBxKCZp84sjsSiu3GSFQpYVd9HY=";
};
buildInputs = [ mock ];
passthru.optional-dependencies = {
twisted = [
twisted
];
};
checkPhase = ''
${python.interpreter} -m unittest mpd.tests
'';
nativeCheckInputs = [
unittestCheckHook
] ++ passthru.optional-dependencies.twisted;
meta = with lib; {
changelog = "https://github.com/Mic92/python-mpd2/blob/v${version}/doc/changes.rst";
description = "A Python client module for the Music Player Daemon";
homepage = "https://github.com/Mic92/python-mpd2";
license = licenses.lgpl3Plus;