tautulli: refactor and move to pkgs/by-name
this shouldn't create any rebuilds
This commit is contained in:
@@ -1,27 +1,25 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
buildPythonApplication,
|
||||
setuptools,
|
||||
wrapPython,
|
||||
python3Packages,
|
||||
makeWrapper,
|
||||
}:
|
||||
|
||||
buildPythonApplication rec {
|
||||
python3Packages.buildPythonApplication (finalAttrs: {
|
||||
pname = "Tautulli";
|
||||
version = "2.16.1";
|
||||
pyproject = false;
|
||||
|
||||
pythonPath = [ setuptools ];
|
||||
pythonPath = [ python3Packages.setuptools ];
|
||||
nativeBuildInputs = [
|
||||
wrapPython
|
||||
python3Packages.wrapPython
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Tautulli";
|
||||
repo = "Tautulli";
|
||||
tag = "v${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
sha256 = "sha256-Zct7EhnU5LROO23Joz6OxQTtC9uGZhtceSG+aX6MI2c=";
|
||||
};
|
||||
|
||||
@@ -32,7 +30,7 @@ buildPythonApplication rec {
|
||||
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
|
||||
echo "v${finalAttrs.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
|
||||
@@ -60,4 +58,4 @@ buildPythonApplication rec {
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = with lib.maintainers; [ rhoriguchi ];
|
||||
};
|
||||
}
|
||||
})
|
||||
@@ -3289,8 +3289,6 @@ with pkgs;
|
||||
|
||||
tabview = with python3Packages; toPythonApplication tabview;
|
||||
|
||||
tautulli = python3Packages.callPackage ../servers/tautulli { };
|
||||
|
||||
inherit (callPackage ../development/tools/pnpm { })
|
||||
pnpm_8
|
||||
pnpm_9
|
||||
|
||||
Reference in New Issue
Block a user