mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
42 lines
876 B
Nix
42 lines
876 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
setuptools,
|
|
twisted,
|
|
unittestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-mpd2";
|
|
version = "3.1.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-S67DWEzEPtmUjVVZB5+vwmebBrKt4nPpCbNYJlSys/U=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
optional-dependencies = {
|
|
twisted = [ twisted ];
|
|
};
|
|
|
|
nativeCheckInputs = [ unittestCheckHook ] ++ optional-dependencies.twisted;
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/Mic92/python-mpd2/blob/v${version}/doc/changes.rst";
|
|
description = "Python client module for the Music Player Daemon";
|
|
homepage = "https://github.com/Mic92/python-mpd2";
|
|
license = licenses.lgpl3Plus;
|
|
maintainers = with maintainers; [
|
|
mic92
|
|
hexa
|
|
];
|
|
};
|
|
}
|