567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
42 lines
874 B
Nix
42 lines
874 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 = {
|
|
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 = lib.licenses.lgpl3Plus;
|
|
maintainers = with lib.maintainers; [
|
|
mic92
|
|
hexa
|
|
];
|
|
};
|
|
}
|