Unverified Commit d35201a8 authored by Janik's avatar Janik Committed by GitHub
Browse files

Merge pull request #240329 from PassiveLemon/animdl-pr

parents eb9defcf 6be18c38
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -13949,6 +13949,18 @@
    githubId = 6931743;
    name = "pasqui23";
  };
  passivelemon = {
    email = "jeremyseber@gmail.com";
    github = "PassiveLemon";
    githubId = 72527881;
    name = "PassiveLemon";
  };
  patricksjackson = {
    email = "patrick@jackson.dev";
    github = "patricksjackson";
    githubId = 160646;
    name = "Patrick Jackson";
  };
  patryk27 = {
    email = "pwychowaniec@pm.me";
    github = "Patryk27";
+63 −0
Original line number Diff line number Diff line
{ lib,
  buildPythonApplication,
  fetchFromGitHub,
  poetry-core,
  anchor-kr,
  anitopy,
  click,
  cssselect,
  httpx,
  lxml,
  packaging,
  pkginfo,
  pycryptodomex,
  pyyaml,
  regex,
  rich,
  tqdm,
  yarl
}:
buildPythonApplication {
  pname = "animdl";
  version = "1.7.27";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "justfoolingaround";
    repo = "animdl";
    # Using the commit hash because upstream does not have releases. https://github.com/justfoolingaround/animdl/issues/277
    rev = "c7c3b79198e66695e0bbbc576f9d9b788616957f";
    hash = "sha256-kn6vCCFhJNlruxoO+PTHVIwTf1E5j1aSdBhrFuGzUq4=";
  };

  nativeBuildInputs = [
    poetry-core
  ];
  propagatedBuildInputs = [
    anchor-kr
    anitopy
    click
    cssselect
    httpx
    lxml
    packaging
    pkginfo
    pycryptodomex
    pyyaml
    regex
    rich
    tqdm
    yarl
  ];

  doCheck = true;

  meta = with lib; {
    description = "A highly efficient, powerful and fast anime scraper";
    homepage = "https://github.com/justfoolingaround/animdl";
    license = licenses.gpl3Only;
    mainProgram = "animdl";
    maintainers = with maintainers; [ passivelemon ];
    platforms = [ "x86_64-linux" ];
  };
}
+26 −0
Original line number Diff line number Diff line
{ lib,
  buildPythonPackage,
  fetchFromGitHub
}:
buildPythonPackage {
  pname = "anchor";
  version = "3";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "justfoolingaround";
    repo = "anchor";
    # Using the commit hash because upstream does not have releases. https://github.com/justfoolingaround/anchor/issues/1
    rev = "4cedb6a51877ed3a292cad61eb19013382915e86";
    hash = "sha256-t75IFBSz6ncHRqXRxbrM9EQdr8xPXjSd9di+/y2LegE=";
  };

  pythonImportsCheck = [ "anchor" ];

  meta = with lib; {
    description = "Python library for scraping";
    homepage = "https://github.com/justfoolingaround/anchor";
    license = licenses.unfree;
    maintainers = with maintainers; [ passivelemon ];
  };
}
+26 −0
Original line number Diff line number Diff line
{ lib,
  buildPythonPackage,
  fetchFromGitHub
}:
buildPythonPackage rec {
  pname = "anitopy";
  version = "2.1.1";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "igorcmoura";
    repo = "anitopy";
    rev = "v${version}";
    hash = "sha256-xXEf7AJKg7grDmkKfFuC4Fk6QYFJtezClyfA3vq8TfQ=";
  };

  pythonImportsCheck = [ "anitopy" ];
  doCheck = true;

  meta = with lib; {
    description = "Python library for parsing anime video filenames";
    homepage = "https://github.com/igorcmoura/anitopy";
    license = licenses.mpl20;
    maintainers = with maintainers; [ passivelemon ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -42132,4 +42132,6 @@ with pkgs;
  mdhtml = callPackage ../tools/text/mdhtml { };
  insulator2 = callPackage ../applications/misc/insulator2 {};
  animdl = python3Packages.callPackage ../applications/video/animdl { };
}
Loading