Unverified Commit c94248d4 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

forbidden: 12.6 -> 13.2 (#400696)

parents 67495f67 30d98e60
Loading
Loading
Loading
Loading
+13 −12
Original line number Diff line number Diff line
@@ -6,23 +6,23 @@

python3.pkgs.buildPythonApplication rec {
  pname = "forbidden";
  version = "12.6";
  version = "13.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "ivan-sincek";
    repo = "forbidden";
    tag = "v${version}";
    hash = "sha256-KE2FHn0ocAna5ReRi9re/u8gdNVkCygSbSRj8gEudgI=";
    hash = "sha256-DQ8zjiLTgBBoqp8AP5BYULz4KGnVEt8e7bkfYRGWvFw=";
  };

  build-system = with python3.pkgs; [
    setuptools
  ];
  build-system = with python3.pkgs; [ setuptools ];

  dependencies = with python3.pkgs; [
    alive-progress
    bot-safe-agents
    colorama
    cryptography
    pycurl
    pyjwt
    regex
@@ -31,16 +31,17 @@ python3.pkgs.buildPythonApplication rec {
    termcolor
  ];

  pythonImportsCheck = [
    "forbidden"
  ];
  # Project has no tests
  doCheck = false;

  pythonImportsCheck = [ "forbidden" ];

  meta = with lib; {
  meta = {
    description = "Tool to bypass 4xx HTTP response status code";
    homepage = "https://github.com/ivan-sincek/forbidden";
    changelog = "https://github.com/ivan-sincek/forbidden/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
    changelog = "https://github.com/ivan-sincek/forbidden/releases/tag/${src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
    mainProgram = "forbidden";
  };
}
+31 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
}:

buildPythonPackage rec {
  pname = "bot-safe-agents";
  version = "1.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "ivan-sincek";
    repo = "bot-safe-agents";
    tag = "v${version}";
    hash = "sha256-XO7iCZ7Dik7CmeFPwmMZf5K4COT5mRhDZMTsQxfR45c=";
  };

  build-system = [ setuptools ];

  pythonImportsCheck = [ "bot_safe_agents" ];

  meta = {
    description = "Library for fetching a list of bot-safe user agents";
    homepage = "https://github.com/ivan-sincek/bot-safe-agents";
    changelog = "https://github.com/ivan-sincek/bot-safe-agents/releases/tag/v${version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ emaryn ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -2011,6 +2011,8 @@ self: super: with self; {
  bottombar = callPackage ../development/python-modules/bottombar { };
  bot-safe-agents = callPackage ../development/python-modules/bot-safe-agents { };
  bpemb = callPackage ../development/python-modules/bpemb { };
  bpylist2 = callPackage ../development/python-modules/bpylist2 { };