1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, twisted
6, unittestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "python-mpd2";
11 version = "3.1.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-8zws2w1rqnSjZyTzjBxKCZp84sjsSiu3GSFQpYVd9HY=";
19 };
20
21 passthru.optional-dependencies = {
22 twisted = [
23 twisted
24 ];
25 };
26
27 nativeCheckInputs = [
28 unittestCheckHook
29 ] ++ passthru.optional-dependencies.twisted;
30
31 meta = with lib; {
32 changelog = "https://github.com/Mic92/python-mpd2/blob/v${version}/doc/changes.rst";
33 description = "A Python client module for the Music Player Daemon";
34 homepage = "https://github.com/Mic92/python-mpd2";
35 license = licenses.lgpl3Plus;
36 maintainers = with maintainers; [ rvl mic92 hexa ];
37 };
38
39}