python3Packages.scrapy: 2.2.1 -> 2.3.0
This commit is contained in:
parent
4b5bae260a
commit
cf5bc04fcf
@ -24,10 +24,11 @@
|
|||||||
, pytest-twisted
|
, pytest-twisted
|
||||||
, botocore
|
, botocore
|
||||||
, itemadapter
|
, itemadapter
|
||||||
|
, itemloaders
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "2.2.1";
|
version = "2.3.0";
|
||||||
pname = "Scrapy";
|
pname = "Scrapy";
|
||||||
|
|
||||||
disabled = isPy27;
|
disabled = isPy27;
|
||||||
@ -57,22 +58,24 @@ buildPythonPackage rec {
|
|||||||
zope_interface
|
zope_interface
|
||||||
protego
|
protego
|
||||||
itemadapter
|
itemadapter
|
||||||
|
itemloaders
|
||||||
];
|
];
|
||||||
|
|
||||||
LC_ALL = "en_US.UTF-8";
|
LC_ALL = "en_US.UTF-8";
|
||||||
|
|
||||||
# Disable doctest plugin—enabled in the shipped pytest.ini—because it causes pytest to hang
|
# Disable doctest plugin—enabled in the shipped pytest.ini—because it causes pytest to hang
|
||||||
# Ignore proxy tests because requires mitmproxy
|
# 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 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
|
# Ignore xml encoding test on darwin because lxml can't find encodings https://bugs.launchpad.net/lxml/+bug/707396
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
substituteInPlace pytest.ini --replace "--doctest-modules" ""
|
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 {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "6a09beb5190bfdee2d72cf261822eae5d92fe8a86ac9ee1f55fc44b4864ca583";
|
sha256 = "b4d08cdacb615563c291d053ef1ba2dc08d9d4b6d81578684eaa1cf7b832f90c";
|
||||||
};
|
};
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user