Skip to content

Commit

Permalink
pythonPackages.scrapy: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FRidh committed Sep 20, 2016
1 parent c65d6f3 commit ed413bb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
'';

Expand Down

0 comments on commit ed413bb

Please sign in to comment.