1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytest
5, pytestrunner
6, functools32
7, six
8, w3lib
9, lxml
10, cssselect
11}:
12
13buildPythonPackage rec {
14 pname = "parsel";
15 version = "1.5.1";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "9ccd82b8a122345601f6f9209e972c0e8c3518a188fcff2d37cb4d7bc570b4b8";
20 };
21
22 checkInputs = [ pytest pytestrunner ];
23 propagatedBuildInputs = [ functools32 six w3lib lxml cssselect ];
24
25 checkPhase = ''
26 py.test
27 '';
28
29 meta = with lib; {
30 homepage = "https://github.com/scrapy/parsel";
31 description = "Parsel is a library to extract data from HTML and XML using XPath and CSS selectors";
32 license = licenses.bsd3;
33 };
34
35}