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
64 lines
1.5 KiB
Nix
64 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonApplication,
|
|
setuptools,
|
|
wrapPython,
|
|
makeWrapper,
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "Tautulli";
|
|
version = "2.16.0";
|
|
format = "other";
|
|
|
|
pythonPath = [ setuptools ];
|
|
nativeBuildInputs = [
|
|
wrapPython
|
|
makeWrapper
|
|
];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Tautulli";
|
|
repo = pname;
|
|
tag = "v${version}";
|
|
sha256 = "sha256-nqSqWRst+gx9aZ2Ko+/tKzpQX7wuU4Bn3vLR5F87aJA=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/bin $out/libexec/tautulli
|
|
cp -R contrib data lib plexpy Tautulli.py CHANGELOG.md $out/libexec/tautulli
|
|
|
|
echo "master" > $out/libexec/tautulli/branch.txt
|
|
echo "v${version}" > $out/libexec/tautulli/version.txt
|
|
|
|
# Can't just symlink to the main script, since it uses __file__ to
|
|
# import bundled packages and manage the service
|
|
makeWrapper $out/libexec/tautulli/Tautulli.py $out/bin/tautulli
|
|
wrapPythonProgramsIn "$out/libexec/tautulli" "$pythonPath"
|
|
|
|
# Creat backwards compatibility symlink to bin/plexpy
|
|
ln -s $out/bin/tautulli $out/bin/plexpy
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
|
|
$out/bin/tautulli --help
|
|
|
|
runHook postCheck
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Python based monitoring and tracking tool for Plex Media Server";
|
|
homepage = "https://tautulli.com/";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ rhoriguchi ];
|
|
};
|
|
}
|