diff --git a/pkgs/development/python-modules/selenium-wire-roadtx/default.nix b/pkgs/development/python-modules/selenium-wire-roadtx/default.nix new file mode 100644 index 000000000000..f3b333bd7bb7 --- /dev/null +++ b/pkgs/development/python-modules/selenium-wire-roadtx/default.nix @@ -0,0 +1,91 @@ +{ + lib, + blinker, + brotli, + buildPythonPackage, + certifi, + cryptography, + fetchFromGitHub, + gunicorn, + h2, + httpbin, + hyperframe, + kaitaistruct, + nix-update-script, + pyasn1, + pyopenssl, + pyparsing, + pysocks, + pytestCheckHook, + ruamel-yaml, + selenium, + setuptools, + wsproto, + zstandard, +}: + +buildPythonPackage (finalAttrs: { + pname = "selenium-wire-roadtx"; + version = "0-unstable-2026-05-20"; + pyproject = true; + + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "dirkjanm"; + repo = "selenium-wire-roadtx"; + rev = "98e91ea9e2472902d19b4a328a2ea08539b488b9"; + hash = "sha256-WhGsgIuJrbc6Emq9B0uin7FUKc/qPH9E1DUjt/FIVZs="; + }; + + build-system = [ setuptools ]; + + dependencies = [ + blinker + brotli + certifi + cryptography + h2 + hyperframe + kaitaistruct + pyasn1 + pyopenssl + pyparsing + pysocks + ruamel-yaml + selenium + wsproto + zstandard + ]; + + nativeCheckInputs = [ + gunicorn + httpbin + pytestCheckHook + ]; + + pythonImportsCheck = [ "seleniumwire" ]; + + disabledTestPaths = [ + # Don't run End2End tests + "tests/end2end/test_end2end.py" + # Don't run MitM tests + "tests/seleniumwire/test_server.py" + ]; + + disabledTests = [ + # Tests require setup + "BackendIntegrationTest" + # AssertionError + "test_save_response" + ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Extends Selenium's Python bindings to give you the ability to inspect requests made by the browser"; + homepage = "https://github.com/dirkjanm/selenium-wire-roadtx"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ fab ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index bd369638c47a..59128805b25d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -17810,6 +17810,8 @@ self: super: with self; { selenium-wire = callPackage ../development/python-modules/selenium-wire { }; + selenium-wire-roadtx = callPackage ../development/python-modules/selenium-wire-roadtx { }; + semantic-version = callPackage ../development/python-modules/semantic-version { }; semaphore-bot = callPackage ../development/python-modules/semaphore-bot { };