pythonPackages.parsel: fix for Python 2

This commit is contained in:
Orivej Desh 2018-12-25 23:10:21 +00:00
parent f2eb569250
commit c6f9068804

View File

@ -1,8 +1,9 @@
{ stdenv { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, pytest , pytest
, pytestrunner , pytestrunner
, functools32
, six , six
, w3lib , w3lib
, lxml , lxml
@ -19,13 +20,13 @@ buildPythonPackage rec {
}; };
buildInputs = [ pytest pytestrunner ]; buildInputs = [ pytest pytestrunner ];
propagatedBuildInputs = [ six w3lib lxml cssselect ]; propagatedBuildInputs = [ functools32 six w3lib lxml cssselect ];
checkPhase = '' checkPhase = ''
py.test py.test
''; '';
meta = with stdenv.lib; { meta = with lib; {
homepage = "https://github.com/scrapy/parsel"; homepage = "https://github.com/scrapy/parsel";
description = "Parsel is a library to extract data from HTML and XML using XPath and CSS selectors"; description = "Parsel is a library to extract data from HTML and XML using XPath and CSS selectors";
license = licenses.bsd3; license = licenses.bsd3;