Unverified Commit d79112d2 authored by jopejoe1's avatar jopejoe1 Committed by GitHub
Browse files

redlist: init at 0-unstable-2026-01-30 (#493145)

parents 05917519 27acef2e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -15143,6 +15143,11 @@
    githubId = 101508537;
    name = "Yuchen He";
  };
  lilahummel = {
    github = "LilaHummel";
    githubId = 263230236;
    name = "Lila Hummel";
  };
  lilioid = {
    name = "Lilly";
    email = "li@lly.sh";
+48 −0
Original line number Diff line number Diff line
{
  fetchFromGitHub,
  lib,
  python3Packages,
}:

python3Packages.buildPythonApplication (finalAttrs: {
  pname = "redlist";
  version = "0-unstable-2026-01-30";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "Laharah";
    repo = "redlist";
    rev = "3d465a12d79331eefde52351b441d8e0875f93e3";
    hash = "sha256-eROvTs4WCVeXE2+4FICC9Rl5bjIkf0E5sYvqCaskXEw=";
  };

  build-system = with python3Packages; [
    setuptools
  ];

  dependencies =
    with python3Packages;
    [
      aiohttp
      beets
      humanize
      confuse
      pynentry
      deluge-client
      cryptography
    ]
    ++ aiohttp.optional-dependencies.speedups;

  postPatch = ''
    substituteInPlace setup.py \
      --replace-fail '"pytest-runner"' ""
  '';

  meta = {
    description = "Convert Spotify playlists to local m3u's and fill the gaps";
    mainProgram = "redlist";
    homepage = "https://github.com/Laharah/redlist";
    license = with lib.licenses; [ mit ];
    maintainers = with lib.maintainers; [ lilahummel ];
  };
})
+36 −0
Original line number Diff line number Diff line
{
  buildPythonPackage,
  fetchFromGitHub,
  lib,
  pinentry-curses,
  setuptools,
}:

buildPythonPackage {
  pname = "pynentry";
  version = "0.1.7";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "Laharah";
    repo = "pynentry";
    rev = "54a484b36b8ac16c0ae51fe436844d5a056ec3c9";
    hash = "sha256-bbuAI0IB3cTIfaCCrq0g93geRLUsxaahHWuU3bBtHII";
  };

  build-system = [ setuptools ];

  postPatch = ''
    substituteInPlace pynentry.py \
      --replace-fail 'executable="pinentry"' 'executable="${lib.getExe pinentry-curses}"'
  '';

  pythonImportsCheck = [ "pynentry" ];

  meta = {
    description = "Wrapper for pinentry for python";
    homepage = "https://github.com/Laharah/pynentry";
    license = with lib.licenses; [ mit ];
    maintainers = with lib.maintainers; [ lilahummel ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -14158,6 +14158,8 @@ self: super: with self; {
  pynello = callPackage ../development/python-modules/pynello { };
  pynentry = callPackage ../development/python-modules/pynentry { };
  pynest2d = callPackage ../development/python-modules/pynest2d { };
  pynetbox = callPackage ../development/python-modules/pynetbox { };