2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
defusedxml,
|
|
|
|
fetchFromGitHub,
|
|
|
|
protobuf,
|
|
|
|
pycryptodomex,
|
|
|
|
pyogg,
|
|
|
|
requests,
|
|
|
|
websocket-client,
|
|
|
|
zeroconf,
|
2023-08-04 22:07:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "librespot";
|
|
|
|
version = "0.0.9";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kokarare1212";
|
|
|
|
repo = "librespot-python";
|
2023-08-22 20:05:09 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-k9qVsxjRlUZ7vCBx00quiAR7S+YkfyoZiAKVnOOG4xM=";
|
|
|
|
};
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
pythonRelaxDeps = true;
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
defusedxml
|
|
|
|
protobuf
|
|
|
|
pycryptodomex
|
|
|
|
pyogg
|
|
|
|
requests
|
|
|
|
websocket-client
|
|
|
|
zeroconf
|
|
|
|
];
|
|
|
|
|
|
|
|
# Doesn't include any tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "librespot" ];
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Open Source Spotify Client";
|
|
|
|
homepage = "https://github.com/kokarare1212/librespot-python";
|
2023-08-22 20:05:09 +00:00
|
|
|
changelog = "https://github.com/kokarare1212/librespot-python/releases/tag/v${version}";
|
2023-08-04 22:07:22 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ onny ];
|
|
|
|
};
|
|
|
|
}
|