mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
64 lines
1.5 KiB
Nix
64 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonApplication,
|
|
setuptools,
|
|
wrapPython,
|
|
makeWrapper,
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "Tautulli";
|
|
version = "2.15.0";
|
|
format = "other";
|
|
|
|
pythonPath = [ setuptools ];
|
|
nativeBuildInputs = [
|
|
wrapPython
|
|
makeWrapper
|
|
];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Tautulli";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-QhJc4Jwxlp3yB0jWa7sRDnIOWLW8CQUupnzbUscJH+c=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|