3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages.scrapy: fix tests

This commit is contained in:
Frederik Rietdijk 2016-09-20 09:33:19 +02:00
parent c65d6f3519
commit ed413bb4d5

View file

@ -29222,13 +29222,15 @@ in modules // {
name = "Scrapy-${version}";
version = "1.1.2";
buildInputs = with self; [ pytest botocore testfixtures pillow ];
buildInputs = with self; [ pkgs.glibcLocales mock pytest botocore testfixtures pillow ];
propagatedBuildInputs = with self; [
six twisted w3lib lxml cssselect queuelib pyopenssl service-identity parsel pydispatcher
];
LC_ALL="en_US.UTF-8";
checkPhase = ''
env LC_ALL=en_US.UTF-8 py.test --ignore=tests/test_linkextractors_deprecated.py --ignore=tests/test_proxy_connect.py
py.test --ignore=tests/test_linkextractors_deprecated.py --ignore=tests/test_proxy_connect.py
# The ignored tests require mitmproxy, which depends on protobuf, but it's disabled on Python3
'';