python3Packages.scrapy: 2.2.1 -> 2.3.0
This commit is contained in:
parent
4b5bae260a
commit
cf5bc04fcf
@ -24,10 +24,11 @@
|
||||
, pytest-twisted
|
||||
, botocore
|
||||
, itemadapter
|
||||
, itemloaders
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "2.2.1";
|
||||
version = "2.3.0";
|
||||
pname = "Scrapy";
|
||||
|
||||
disabled = isPy27;
|
||||
@ -57,22 +58,24 @@ buildPythonPackage rec {
|
||||
zope_interface
|
||||
protego
|
||||
itemadapter
|
||||
itemloaders
|
||||
];
|
||||
|
||||
LC_ALL = "en_US.UTF-8";
|
||||
|
||||
# Disable doctest plugin—enabled in the shipped pytest.ini—because it causes pytest to hang
|
||||
# Ignore proxy tests because requires mitmproxy
|
||||
# Ignore utils_display tests because it requires pygments
|
||||
# Ignore test_retry_dns_error because tries to resolve an invalid dns and weirdly fails with "Reactor was unclean"
|
||||
# Ignore xml encoding test on darwin because lxml can't find encodings https://bugs.launchpad.net/lxml/+bug/707396
|
||||
checkPhase = ''
|
||||
substituteInPlace pytest.ini --replace "--doctest-modules" ""
|
||||
pytest --ignore=tests/test_linkextractors_deprecated.py --ignore=tests/test_proxy_connect.py --deselect tests/test_crawl.py::CrawlTestCase::test_retry_dns_error ${lib.optionalString stdenv.isDarwin "--deselect tests/test_utils_iterators.py::LxmlXmliterTestCase::test_xmliter_encoding"}
|
||||
pytest --ignore=tests/test_linkextractors_deprecated.py --ignore=tests/test_proxy_connect.py --ignore=tests/test_utils_display.py --deselect tests/test_crawl.py::CrawlTestCase::test_retry_dns_error ${lib.optionalString stdenv.isDarwin "--deselect tests/test_utils_iterators.py::LxmlXmliterTestCase::test_xmliter_encoding"}
|
||||
'';
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "6a09beb5190bfdee2d72cf261822eae5d92fe8a86ac9ee1f55fc44b4864ca583";
|
||||
sha256 = "b4d08cdacb615563c291d053ef1ba2dc08d9d4b6d81578684eaa1cf7b832f90c";
|
||||
};
|
||||
|
||||
postInstall = ''
|
||||
|
Loading…
Reference in New Issue
Block a user