Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 35 lines 664 B view raw
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.2"; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "08v76s6s4li7asnyz8a7gbp9vz522rv5apranyv76mb0lhmjd92d"; 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}