Unverified Commit 21be6da8 authored by Luke Granger-Brown's avatar Luke Granger-Brown Committed by GitHub
Browse files

isponsorblocktv: init at 2.2.1 (#343585)

parents 2d70148c 5892f519
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
{ python3Packages }: python3Packages.callPackage ./pypackage.nix { }
+69 −0
Original line number Diff line number Diff line
{
  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"
  ];

  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;
  };
}
+24 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
}:

buildPythonPackage rec {
  pname = "async-cache";
  version = "1.1.1";

  src = fetchFromGitHub {
    owner = "iamsinghrajat";
    repo = "async-cache";
    rev = "9925f07920e6b585dc6345f49b7f477b3e1b8c2c"; # doesn't tag releases :(
    hash = "sha256-AVSdtWPs1c8AE5PNOq+BdXzBXkI0aeFVzxxPl/ATyU0=";
  };

  meta = with lib; {
    description = "Caching solution for asyncio";
    homepage = "https://github.com/iamsinghrajat/async-cache";
    license = licenses.mit;
    maintainers = [ maintainers.lukegb ];
  };
}
+45 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  hatchling,
  aiohttp,
  pytest,
  pytestCheckHook,
  pytest-mock,
  pytest-asyncio,
}:

buildPythonPackage rec {
  pname = "pyytlounge";
  version = "2.1.1";

  src = fetchFromGitHub {
    owner = "FabioGNR";
    repo = "pyytlounge";
    rev = "v${version}";
    hash = "sha256-0QPa3EzOBv5fuw3FGgmoN4KiC4KHo1Z+Svjcneoe0pc=";
  };

  pyproject = true;

  doCheck = true;

  build-system = [ hatchling ];

  dependencies = [ aiohttp ];

  nativeCheckInputs = [
    pytest
    pytestCheckHook
    pytest-mock
    pytest-asyncio
  ];

  meta = with lib; {
    description = "Python YouTube Lounge API";
    homepage = "https://github.com/FabioGNR/pyytlounge";
    license = licenses.gpl3Only;
    maintainers = [ maintainers.lukegb ];
  };
}
+32 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  textual,
}:

buildPythonPackage rec {
  pname = "textual-slider";
  version = "0.1.2";

  src = fetchFromGitHub {
    owner = "TomJGooding";
    repo = "textual-slider";
    rev = "91e64bafe3aa72f8d875e76b437d6af9320e039e";
    hash = "sha256-lwN7igiEB8uC9e7qBSVLuKCpF41+Ni7ZJ3cVK19cEY8=";
  };

  pyproject = true;

  build-system = [ setuptools ];

  dependencies = [ textual ];

  meta = with lib; {
    description = "Textual widget for a simple slider";
    homepage = "https://github.com/TomJGooding/textual-slider";
    license = licenses.gpl3Only;
    maintainers = [ maintainers.lukegb ];
  };
}
Loading