Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 36 lines 701 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytest 5, pytestrunner 6, functools32 7, six 8, w3lib 9, lxml 10, cssselect 11, isPy27 12}: 13 14buildPythonPackage rec { 15 pname = "parsel"; 16 version = "1.6.0"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "0yawf9r3r863lwxj0n89i7h3n8xjbsl5b7n6xg76r68scl5yzvvh"; 21 }; 22 23 checkInputs = [ pytest pytestrunner ]; 24 propagatedBuildInputs = [ six w3lib lxml cssselect ] ++ lib.optionals isPy27 [ functools32 ]; 25 26 checkPhase = '' 27 py.test 28 ''; 29 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 }; 35 36}