Unverified Commit 1bf5bf6b authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

python3Packages.random-user-agent: remove (#452990)

parents 3e1cfd92 2329cce8
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  python3,
  fetchFromGitHub,
  fetchpatch,
}:

let
@@ -34,6 +35,15 @@ python.pkgs.buildPythonApplication rec {
    hash = "sha256-xYCms+Su7FmaG7KVHZpzfD/wx9Gepz11t8dEK/YDfvI=";
  };

  patches = [
    # https://github.com/CompassSecurity/conkeyscan/pull/3
    (fetchpatch {
      name = "replace-random-user-agent-with-fake-useragent.patch";
      url = "https://github.com/nagapraneethk/conkeyscan/commit/f6cf61cc42fcc07930a06891b6c4a2653bfbf47f.patch";
      hash = "sha256-zfHU/KsgzQvn/kNsWZy1hGZaBHw/he1zDTUHHV/BHFc=";
    })
  ];

  postPatch = ''
    substituteInPlace setup.py \
      --replace-fail "{{VERSION_PLACEHOLDER}}" "${version}"
@@ -47,7 +57,7 @@ python.pkgs.buildPythonApplication rec {
    clize
    loguru
    pysocks
    random-user-agent
    fake-useragent
    readchar
    requests-ratelimiter
  ];
+0 −36
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pythonOlder,
}:

buildPythonPackage {
  pname = "random-user-agent";
  version = "1.0.1-unstable-2018-12-26";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "Luqman-Ud-Din";
    repo = "random_user_agent";
    rev = "9547a1d93558c5838f734357c695fee92be905f7";
    hash = "sha256-BkMx7N8O9I4rD8lvpoyXTZbZDsoozIpYUQh+zkLQ7Uc=";
  };

  build-system = [ setuptools ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [ "random_user_agent" ];

  meta = with lib; {
    description = "Module to get list of user agents based on filters";
    homepage = "https://github.com/Luqman-Ud-Din/random_user_agent";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -723,6 +723,7 @@ mapAliases {
  radian = throw "radian has been promoted to a top-level attribute name: `pkgs.radian`"; # added 2025-05-02
  radicale_infcloud = radicale-infcloud; # added 2024-01-07
  radio_beam = radio-beam; # added 2023-11-04
  random-user-agent = throw "random-user-agent has been removed as it was abandoned upstream in 2018; use fake-useragent instead"; # Added 2025-10-17
  ratelimiter = throw "ratelimiter has been removed, since it is unmaintained and broken"; # added 2023-10-21
  rauth = throw "rauth has beed removed, since it is unmaintained upstream"; # added 2024-07-27
  rdflib-jsonld = throw "rdflib-jsonld is not compatible with rdflib 6"; # added 2021-11-05
+0 −2
Original line number Diff line number Diff line
@@ -15706,8 +15706,6 @@ self: super: with self; {
  ramlfications = callPackage ../development/python-modules/ramlfications { };
  random-user-agent = callPackage ../development/python-modules/random-user-agent { };
  random2 = callPackage ../development/python-modules/random2 { };
  randomfiletree = callPackage ../development/python-modules/randomfiletree { };