python313Packages.mechanicalsoup: disable failing test

- refactor

Changed files
+14 -7
pkgs
development
python-modules
mechanicalsoup
+14 -7
pkgs/development/python-modules/mechanicalsoup/default.nix
···
buildPythonPackage,
fetchFromGitHub,
lxml,
+
pytest-cov-stub,
pytest-httpbin,
pytest-mock,
pytestCheckHook,
-
pythonOlder,
-
requests,
requests-mock,
+
requests,
+
setuptools,
}:
buildPythonPackage rec {
pname = "mechanicalsoup";
version = "1.4.0";
-
format = "setuptools";
-
-
disabled = pythonOlder "3.7";
+
pyproject = true;
src = fetchFromGitHub {
owner = "MechanicalSoup";
···
substituteInPlace setup.py \
--replace "'pytest-runner'" ""
substituteInPlace setup.cfg \
-
--replace " --cov --cov-config .coveragerc --flake8" ""
+
--replace " --flake8" ""
'';
-
propagatedBuildInputs = [
+
build-system = [ setuptools ];
+
+
dependencies = [
beautifulsoup4
lxml
requests
···
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [
+
pytest-cov-stub
pytest-httpbin
pytest-mock
pytestCheckHook
···
];
pythonImportsCheck = [ "mechanicalsoup" ];
+
+
disabledTests = [
+
# Missing module
+
"test_select_form_associated_elements"
+
];
meta = with lib; {
description = "Python library for automating interaction with websites";