pythonPackages.scrapy: Fix tests on darwin
This commit is contained in:
parent
cb9b3f1129
commit
fdd065c761
@ -1,4 +1,5 @@
|
||||
{ lib, stdenv
|
||||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, isPy27
|
||||
, fetchPypi
|
||||
@ -79,7 +80,10 @@ buildPythonPackage rec {
|
||||
"test_retry_dns_error"
|
||||
"test_custom_asyncio_loop_enabled_true"
|
||||
"test_custom_loop_asyncio"
|
||||
] ++ stdenv.lib.optionals stdenv.isDarwin [ "test_xmliter_encoding" ];
|
||||
] ++ stdenv.lib.optionals stdenv.isDarwin [
|
||||
"test_xmliter_encoding"
|
||||
"test_download"
|
||||
];
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
@ -92,6 +96,8 @@ buildPythonPackage rec {
|
||||
install -m 644 -D extras/scrapy_zsh_completion $out/share/zsh/site-functions/_scrapy
|
||||
'';
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A fast high-level web crawling and web scraping framework, used to crawl websites and extract structured data from their pages";
|
||||
homepage = "https://scrapy.org/";
|
||||
|
Loading…
x
Reference in New Issue
Block a user