Skip to content

Commit 21be6da

Browse files
authored
isponsorblocktv: init at 2.2.1 (#343585)
2 parents 2d70148 + 5892f51 commit 21be6da

File tree

6 files changed

+177
-0
lines changed

6 files changed

+177
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ python3Packages }: python3Packages.callPackage ./pypackage.nix { }
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
buildPythonApplication,
3+
fetchFromGitHub,
4+
lib,
5+
hatchling,
6+
hatch-requirements-txt,
7+
aiohttp,
8+
appdirs,
9+
async-cache,
10+
pyytlounge,
11+
rich-click,
12+
rich,
13+
ssdp,
14+
textual-slider,
15+
textual,
16+
xmltodict,
17+
pythonRelaxDepsHook,
18+
}:
19+
buildPythonApplication rec {
20+
pname = "iSponsorBlockTV";
21+
version = "2.2.1";
22+
23+
src = fetchFromGitHub {
24+
owner = "dmunozv04";
25+
repo = "iSponsorBlockTV";
26+
rev = "v${version}";
27+
hash = "sha256-v5NF6o+9IxusYNebs2a9fgHCHZNN9hHLQurujhmdsgU=";
28+
};
29+
30+
pyproject = true;
31+
32+
build-system = [
33+
hatchling
34+
hatch-requirements-txt
35+
];
36+
37+
dependencies = [
38+
aiohttp
39+
appdirs
40+
async-cache
41+
pyytlounge
42+
rich-click
43+
rich
44+
ssdp
45+
textual-slider
46+
textual
47+
xmltodict
48+
];
49+
50+
nativeBuildInputs = [ pythonRelaxDepsHook ];
51+
52+
pythonRemoveDeps = [ "argparse" ];
53+
54+
pythonRelaxDeps = [
55+
"aiohttp"
56+
"pyytlounge"
57+
"textual-slider"
58+
"textual"
59+
];
60+
61+
meta = {
62+
homepage = "https://github.com/dmunozv04/iSponsorBlockTV";
63+
description = "SponsorBlock client for all YouTube TV clients";
64+
license = lib.licenses.gpl3Only;
65+
maintainers = with lib.maintainers; [ lukegb ];
66+
mainProgram = "iSponsorBlockTV";
67+
platforms = lib.platforms.linux;
68+
};
69+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
fetchFromGitHub,
5+
}:
6+
7+
buildPythonPackage rec {
8+
pname = "async-cache";
9+
version = "1.1.1";
10+
11+
src = fetchFromGitHub {
12+
owner = "iamsinghrajat";
13+
repo = "async-cache";
14+
rev = "9925f07920e6b585dc6345f49b7f477b3e1b8c2c"; # doesn't tag releases :(
15+
hash = "sha256-AVSdtWPs1c8AE5PNOq+BdXzBXkI0aeFVzxxPl/ATyU0=";
16+
};
17+
18+
meta = with lib; {
19+
description = "Caching solution for asyncio";
20+
homepage = "https://github.com/iamsinghrajat/async-cache";
21+
license = licenses.mit;
22+
maintainers = [ maintainers.lukegb ];
23+
};
24+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
fetchFromGitHub,
5+
hatchling,
6+
aiohttp,
7+
pytest,
8+
pytestCheckHook,
9+
pytest-mock,
10+
pytest-asyncio,
11+
}:
12+
13+
buildPythonPackage rec {
14+
pname = "pyytlounge";
15+
version = "2.1.1";
16+
17+
src = fetchFromGitHub {
18+
owner = "FabioGNR";
19+
repo = "pyytlounge";
20+
rev = "v${version}";
21+
hash = "sha256-0QPa3EzOBv5fuw3FGgmoN4KiC4KHo1Z+Svjcneoe0pc=";
22+
};
23+
24+
pyproject = true;
25+
26+
doCheck = true;
27+
28+
build-system = [ hatchling ];
29+
30+
dependencies = [ aiohttp ];
31+
32+
nativeCheckInputs = [
33+
pytest
34+
pytestCheckHook
35+
pytest-mock
36+
pytest-asyncio
37+
];
38+
39+
meta = with lib; {
40+
description = "Python YouTube Lounge API";
41+
homepage = "https://github.com/FabioGNR/pyytlounge";
42+
license = licenses.gpl3Only;
43+
maintainers = [ maintainers.lukegb ];
44+
};
45+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
fetchFromGitHub,
5+
setuptools,
6+
textual,
7+
}:
8+
9+
buildPythonPackage rec {
10+
pname = "textual-slider";
11+
version = "0.1.2";
12+
13+
src = fetchFromGitHub {
14+
owner = "TomJGooding";
15+
repo = "textual-slider";
16+
rev = "91e64bafe3aa72f8d875e76b437d6af9320e039e";
17+
hash = "sha256-lwN7igiEB8uC9e7qBSVLuKCpF41+Ni7ZJ3cVK19cEY8=";
18+
};
19+
20+
pyproject = true;
21+
22+
build-system = [ setuptools ];
23+
24+
dependencies = [ textual ];
25+
26+
meta = with lib; {
27+
description = "Textual widget for a simple slider";
28+
homepage = "https://github.com/TomJGooding/textual-slider";
29+
license = licenses.gpl3Only;
30+
maintainers = [ maintainers.lukegb ];
31+
};
32+
}

pkgs/top-level/python-packages.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -902,6 +902,8 @@ self: super: with self; {
902902

903903
asyncarve = callPackage ../development/python-modules/asyncarve { };
904904

905+
async-cache = callPackage ../development/python-modules/async-cache { };
906+
905907
async-dns = callPackage ../development/python-modules/async-dns { };
906908

907909
async-generator = callPackage ../development/python-modules/async-generator { };
@@ -13147,6 +13149,8 @@ self: super: with self; {
1314713149

1314813150
pyyardian = callPackage ../development/python-modules/pyyardian { };
1314913151

13152+
pyytlounge = callPackage ../development/python-modules/pyytlounge { };
13153+
1315013154
pyzabbix = callPackage ../development/python-modules/pyzabbix { };
1315113155

1315213156
pyzerproc = callPackage ../development/python-modules/pyzerproc { };
@@ -15433,6 +15437,8 @@ self: super: with self; {
1543315437

1543415438
textual-dev = callPackage ../development/python-modules/textual-dev { };
1543515439

15440+
textual-slider = callPackage ../development/python-modules/textual-slider { };
15441+
1543615442
textual-universal-directorytree = callPackage ../development/python-modules/textual-universal-directorytree { };
1543715443

1543815444
testbook = callPackage ../development/python-modules/testbook { };

0 commit comments

Comments
 (0)