python311Packages.mechanize: enable tests
This commit is contained in:
parent
4ca74b16b0
commit
10349c3473
1 changed files with 16 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, html5lib
|
, html5lib
|
||||||
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, setuptools
|
, setuptools
|
||||||
}:
|
}:
|
||||||
|
@ -26,12 +27,26 @@ buildPythonPackage rec {
|
||||||
html5lib
|
html5lib
|
||||||
];
|
];
|
||||||
|
|
||||||
doCheck = false;
|
nativeCheckInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"mechanize"
|
"mechanize"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
disabledTestPaths = [
|
||||||
|
# Tests require network access
|
||||||
|
"test/test_urllib2_localnet.py"
|
||||||
|
"test/test_functional.py"
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# Tests require network access
|
||||||
|
"test_pickling"
|
||||||
|
"test_password_manager"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Stateful programmatic web browsing in Python";
|
description = "Stateful programmatic web browsing in Python";
|
||||||
homepage = "https://github.com/python-mechanize/mechanize";
|
homepage = "https://github.com/python-mechanize/mechanize";
|
||||||
|
|
Loading…
Reference in a new issue