Robert Schütz
2025-02-22 18:28:14 -08:00
parent 5c978e2852
commit eb427bd3bf
2 changed files with 49 additions and 71 deletions
+49 -1
View File
@@ -1 +1,49 @@
{ python3Packages }: python3Packages.callPackage ./pypackage.nix { }
{
fetchFromGitHub,
lib,
python3Packages,
}:
python3Packages.buildPythonApplication rec {
pname = "isponsorblocktv";
version = "2.3.1";
pyproject = true;
src = fetchFromGitHub {
owner = "dmunozv04";
repo = "iSponsorBlockTV";
tag = "v${version}";
hash = "sha256-4HGhPUnors7T2UVZCLVIcGX63SRU3PZ1JQ+zf2ZV8/M=";
};
build-system = with python3Packages; [
hatchling
hatch-requirements-txt
];
dependencies = with python3Packages; [
aiohttp
appdirs
async-cache
pyytlounge
rich-click
rich
ssdp
textual-slider
textual
xmltodict
];
# all dependencies are pinned to exact version numbers
pythonRelaxDeps = true;
meta = {
homepage = "https://github.com/dmunozv04/iSponsorBlockTV";
changelog = "https://github.com/dmunozv04/iSponsorBlockTV/releases/tag/${src.tag}";
description = "SponsorBlock client for all YouTube TV clients";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ lukegb ];
mainProgram = "iSponsorBlockTV";
platforms = lib.platforms.linux;
};
}
@@ -1,70 +0,0 @@
{
buildPythonApplication,
fetchFromGitHub,
lib,
hatchling,
hatch-requirements-txt,
aiohttp,
appdirs,
async-cache,
pyytlounge,
rich-click,
rich,
ssdp,
textual-slider,
textual,
xmltodict,
pythonRelaxDepsHook,
}:
buildPythonApplication rec {
pname = "iSponsorBlockTV";
version = "2.2.1";
src = fetchFromGitHub {
owner = "dmunozv04";
repo = "iSponsorBlockTV";
rev = "v${version}";
hash = "sha256-v5NF6o+9IxusYNebs2a9fgHCHZNN9hHLQurujhmdsgU=";
};
pyproject = true;
build-system = [
hatchling
hatch-requirements-txt
];
dependencies = [
aiohttp
appdirs
async-cache
pyytlounge
rich-click
rich
ssdp
textual-slider
textual
xmltodict
];
nativeBuildInputs = [ pythonRelaxDepsHook ];
pythonRemoveDeps = [ "argparse" ];
pythonRelaxDeps = [
"aiohttp"
"pyytlounge"
"textual-slider"
"textual"
"rich"
];
meta = {
homepage = "https://github.com/dmunozv04/iSponsorBlockTV";
description = "SponsorBlock client for all YouTube TV clients";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ lukegb ];
mainProgram = "iSponsorBlockTV";
platforms = lib.platforms.linux;
};
}