python312Packages.pyreqwest-impersonate: remove

The package has been replaced by `python312Packages.primp`.
This commit is contained in:
Pol Dellaiera 2024-10-22 11:16:46 +02:00
parent 8acc475795
commit 2389fd1140
3 changed files with 1 additions and 73 deletions

View File

@ -1,69 +0,0 @@
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
rustPlatform,
pytest,
runCommand,
boringssl,
libiconv,
SystemConfiguration,
}:
let
# boring-sys expects the static libraries in build/ instead of lib/
boringssl-wrapper = runCommand "boringssl-wrapper" { } ''
mkdir $out
cd $out
ln -s ${boringssl.out}/lib build
ln -s ${boringssl.dev}/include include
'';
in
buildPythonPackage rec {
pname = "pyreqwest-impersonate";
version = "0.4.9";
pyproject = true;
src = fetchFromGitHub {
owner = "deedy5";
repo = "pyreqwest_impersonate";
rev = "v${version}";
hash = "sha256-U22NNYN8p3IQIAVb6dOrErFvuJ5m5yXi2ELbyuaNlFc=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-rj9tfOzhzfWBoxBGlTXHAmiH5qxyoLnHhlEijy/q+Ws=";
};
nativeBuildInputs = [
rustPlatform.bindgenHook
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
libiconv
SystemConfiguration
];
env.BORING_BSSL_PATH = boringssl-wrapper;
optional-dependencies = {
dev = [ pytest ];
};
# Test use network
doCheck = false;
pythonImportsCheck = [ "pyreqwest_impersonate" ];
meta = {
description = "HTTP client that can impersonate web browsers (Chrome/Edge/OkHttp/Safari), mimicking their headers and TLS/JA3/JA4/HTTP2 fingerprints";
homepage = "https://github.com/deedy5/pyreqwest_impersonate";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ drupol ];
};
}

View File

@ -485,6 +485,7 @@ mapAliases ({
pyres = throw "pyres has been removed, since it is abandoned and broken"; # added 2023-06-20
pygeoip = throw "pygeoip has been removed, since it wash archived in April 2018"; # added 2024-07-27
pygeos = throw "pygeos has been removed, since it was merged with shapely 2.0"; # added 2024-05-26
pyreqwest-impersonate = throw "pyreqwest has been renamed to primp"; # added 2024-10-22
pyRFC3339 = pyrfc3339; # added 2024-01-07
pyroute2-core = throw "pyroute2 migrated back to a single package scheme in version 0.7.1"; # added 2022-07-16
pyroute2-ethtool = throw "pyroute2 migrated back to a single package scheme in version 0.7.1"; # added 2022-07-16

View File

@ -10320,10 +10320,6 @@ self: super: with self; {
pyrender = callPackage ../development/python-modules/pyrender { };
pyreqwest-impersonate = callPackage ../development/python-modules/pyreqwest-impersonate {
inherit (pkgs.darwin.apple_sdk.frameworks) SystemConfiguration;
};
pyrevolve = callPackage ../development/python-modules/pyrevolve { };
pyrfxtrx = callPackage ../development/python-modules/pyrfxtrx { };