at master 946 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 cssselect, 5 fetchPypi, 6 jmespath, 7 lxml, 8 packaging, 9 psutil, 10 pytestCheckHook, 11 pythonOlder, 12 setuptools, 13 w3lib, 14}: 15 16buildPythonPackage rec { 17 pname = "parsel"; 18 version = "1.10.0"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.7"; 22 23 src = fetchPypi { 24 inherit pname version; 25 hash = "sha256-FPF9uVWfUbQzV7nf5DzshwqO+16khXq7Yk7G/4DYoIA="; 26 }; 27 28 build-system = [ setuptools ]; 29 30 dependencies = [ 31 cssselect 32 jmespath 33 lxml 34 packaging 35 w3lib 36 ]; 37 38 nativeCheckInputs = [ 39 psutil 40 pytestCheckHook 41 ]; 42 43 pythonImportsCheck = [ "parsel" ]; 44 45 meta = with lib; { 46 description = "Python library to extract data from HTML and XML using XPath and CSS selectors"; 47 homepage = "https://github.com/scrapy/parsel"; 48 changelog = "https://github.com/scrapy/parsel/blob/v${version}/NEWS"; 49 license = licenses.bsd3; 50 maintainers = with maintainers; [ fab ]; 51 }; 52}