python3Packages.scrapy: disable failing test

This commit is contained in:
Fabian Affolter 2022-01-14 20:58:24 +01:00
parent 95a2fa4c83
commit f86eb879a0
2 changed files with 8 additions and 8 deletions

View File

@ -1,7 +1,6 @@
{ lib
, buildPythonPackage
, fetchPypi
, funcsigs
, setuptools-scm
, pytestCheckHook
, pythonOlder
@ -11,6 +10,7 @@
buildPythonPackage rec {
pname = "logfury";
version = "1.0.1";
format = "setuptools";
disabled = pythonOlder "3.5";
@ -23,10 +23,6 @@ buildPythonPackage rec {
setuptools-scm
];
propagatedBuildInputs = [
funcsigs
];
checkInputs = [
pytestCheckHook
testfixtures

View File

@ -86,9 +86,10 @@ buildPythonPackage rec {
LC_ALL = "en_US.UTF-8";
# Disable doctest plugin because it causes pytest to hang
preCheck = ''
substituteInPlace pytest.ini --replace "--doctest-modules" ""
# Disable doctest plugin because it causes pytest to hang
substituteInPlace pytest.ini \
--replace "--doctest-modules" ""
'';
disabledTestPaths = [
@ -116,6 +117,7 @@ buildPythonPackage rec {
"test_peek_fifo"
"test_peek_one_element"
"test_peek_lifo"
"test_callback_kwargs"
] ++ lib.optionals stdenv.isDarwin [
"test_xmliter_encoding"
"test_download"
@ -127,7 +129,9 @@ buildPythonPackage rec {
install -m 644 -D extras/scrapy_zsh_completion $out/share/zsh/site-functions/_scrapy
'';
pythonImportsCheck = [ "scrapy" ];
pythonImportsCheck = [
"scrapy"
];
__darwinAllowLocalNetworking = true;