From 2389fd114005a00da81c1ddfcd2359bb24daa8ee Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Tue, 22 Oct 2024 11:16:46 +0200 Subject: [PATCH] python312Packages.pyreqwest-impersonate: remove The package has been replaced by `python312Packages.primp`. --- .../pyreqwest-impersonate/default.nix | 69 ------------------- pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 4 -- 3 files changed, 1 insertion(+), 73 deletions(-) delete mode 100644 pkgs/development/python-modules/pyreqwest-impersonate/default.nix diff --git a/pkgs/development/python-modules/pyreqwest-impersonate/default.nix b/pkgs/development/python-modules/pyreqwest-impersonate/default.nix deleted file mode 100644 index 33e5958430d1..000000000000 --- a/pkgs/development/python-modules/pyreqwest-impersonate/default.nix +++ /dev/null @@ -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 ]; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 7f7236fd2b08..b55e051e41a5 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -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 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c6fa8983009d..bda48d57cc98 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };