Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / parsel / default.nix
blob319f83f727552250f6543659e8d17bee7153abe0
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pytest
5 , pytestrunner
6 , functools32
7 , six
8 , w3lib
9 , lxml
10 , cssselect
11 , isPy27
14 buildPythonPackage rec {
15   pname = "parsel";
16   version = "1.6.0";
18   src = fetchPypi {
19     inherit pname version;
20     sha256 = "0yawf9r3r863lwxj0n89i7h3n8xjbsl5b7n6xg76r68scl5yzvvh";
21   };
23   checkInputs = [ pytest pytestrunner ];
24   propagatedBuildInputs = [ six w3lib lxml cssselect ] ++ lib.optionals isPy27 [ functools32 ];
26   checkPhase = ''
27     py.test
28   '';
30   meta = with lib; {
31     homepage = "https://github.com/scrapy/parsel";
32     description = "Parsel is a library to extract data from HTML and XML using XPath and CSS selectors";
33     license = licenses.bsd3;
34   };