Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
73 lines
1.3 KiB
Nix
73 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchFromGitHub,
|
|
|
|
ffmpeg,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "streamrip";
|
|
version = "2.1.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nathom";
|
|
repo = "streamrip";
|
|
rev = "v${version}";
|
|
hash = "sha256-Klrkz0U36EIGO2sNxTnKPACvvqu1sslLFFrQRjFdxiE=";
|
|
};
|
|
|
|
patches = [
|
|
./patches/ensure-the-default-config-file-is-writable.patch
|
|
];
|
|
|
|
nativeBuildInputs = with python3Packages; [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
aiodns
|
|
aiofiles
|
|
aiohttp
|
|
aiolimiter
|
|
appdirs
|
|
cleo
|
|
click-help-colors
|
|
deezer-py
|
|
m3u8
|
|
mutagen
|
|
pathvalidate
|
|
pillow
|
|
pycryptodomex
|
|
pytest-asyncio
|
|
pytest-mock
|
|
rich
|
|
simple-term-menu
|
|
tomlkit
|
|
tqdm
|
|
];
|
|
|
|
nativeCheckInputs = with python3Packages; [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonRelaxDeps = true;
|
|
|
|
prePatch = ''
|
|
sed -i 's#"ffmpeg"#"${lib.getBin ffmpeg}/bin/ffmpeg"#g' streamrip/client/downloadable.py
|
|
'';
|
|
|
|
preCheck = ''
|
|
export HOME=$(mktemp -d)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Scriptable music downloader for Qobuz, Tidal, SoundCloud, and Deezer";
|
|
homepage = "https://github.com/nathom/streamrip";
|
|
license = licenses.gpl3Only;
|
|
maintainers = [ ];
|
|
mainProgram = "rip";
|
|
};
|
|
}
|