Files
nixpkgs/pkgs/development/python-modules/librespot/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
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>
2025-12-10 18:09:49 +01:00

59 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
defusedxml,
fetchFromGitHub,
protobuf,
pycryptodomex,
pyogg,
pythonOlder,
requests,
setuptools,
websocket-client,
zeroconf,
}:
buildPythonPackage rec {
pname = "librespot";
version = "0.0.10";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "kokarare1212";
repo = "librespot-python";
tag = "v${version}";
hash = "sha256-VjVPrWttOYfWsxzZpRgpZVenmP0y9Fea6Bhv9U8BO9U=";
};
env.PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION = "python";
pythonRelaxDeps = true;
build-system = [ setuptools ];
dependencies = [
defusedxml
protobuf
pycryptodomex
pyogg
requests
websocket-client
zeroconf
];
# Doesn't include any tests
doCheck = false;
pythonImportsCheck = [ "librespot" ];
meta = {
description = "Open Source Spotify Client";
homepage = "https://github.com/kokarare1212/librespot-python";
changelog = "https://github.com/kokarare1212/librespot-python/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ onny ];
};
}