python313Packages.mechanicalsoup: disable failing test

- refactor
This commit is contained in:
Fabian Affolter 2025-07-05 10:08:38 +02:00
parent a7d40f2f3b
commit ccd3ab8971

View File

@ -4,20 +4,19 @@
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";
@ -31,10 +30,12 @@ buildPythonPackage rec {
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
@ -43,6 +44,7 @@ buildPythonPackage rec {
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [
pytest-cov-stub
pytest-httpbin
pytest-mock
pytestCheckHook
@ -51,6 +53,11 @@ buildPythonPackage rec {
pythonImportsCheck = [ "mechanicalsoup" ];
disabledTests = [
# Missing module
"test_select_form_associated_elements"
];
meta = with lib; {
description = "Python library for automating interaction with websites";
homepage = "https://github.com/hickford/MechanicalSoup";