mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 08:26:37 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
75 lines
1.4 KiB
Nix
75 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
blinker,
|
|
brotli,
|
|
buildPythonPackage,
|
|
certifi,
|
|
fetchFromGitHub,
|
|
h2,
|
|
hyperframe,
|
|
kaitaistruct,
|
|
pyasn1,
|
|
httpbin,
|
|
pyopenssl,
|
|
pyparsing,
|
|
pysocks,
|
|
gunicorn,
|
|
pytestCheckHook,
|
|
selenium,
|
|
setuptools,
|
|
wsproto,
|
|
zstandard,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "selenium-wire";
|
|
version = "5.1.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wkeeling";
|
|
repo = "selenium-wire";
|
|
tag = version;
|
|
hash = "sha256-KgaDxHS0dAK6CT53L1qqx1aORMmkeaiXAUtGC82hiIQ=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
blinker
|
|
brotli
|
|
certifi
|
|
h2
|
|
hyperframe
|
|
kaitaistruct
|
|
pyasn1
|
|
pyopenssl
|
|
pyparsing
|
|
pysocks
|
|
selenium
|
|
wsproto
|
|
zstandard
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
gunicorn
|
|
httpbin
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "seleniumwire" ];
|
|
|
|
disabledTestPaths = [
|
|
# Don't run End2End tests
|
|
"tests/end2end/test_end2end.py"
|
|
];
|
|
|
|
meta = {
|
|
description = "Extends Selenium's Python bindings to give you the ability to inspect requests made by the browser";
|
|
homepage = "https://github.com/wkeeling/selenium-wire";
|
|
changelog = "https://github.com/wkeeling/selenium-wire/blob/${version}/HISTORY.rst";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
broken = lib.versionAtLeast blinker.version "1.8";
|
|
};
|
|
}
|