1{ lib
2, buildPythonPackage
3, fetchPypi
4, html5lib
5, lxml
6, pytestCheckHook
7, pythonOlder
8, soupsieve
9}:
10
11buildPythonPackage rec {
12 pname = "beautifulsoup4";
13 version = "4.10.0";
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "sha256-wjrSPFIdgYlVpBUaZ9gVgDGdS/VI09SfQiOuBB/5iJE=";
20 };
21
22 propagatedBuildInputs = [
23 html5lib
24 lxml
25 soupsieve
26 ];
27
28 checkInputs = [
29 pytestCheckHook
30 ];
31
32 pythonImportsCheck = [ "bs4" ];
33
34 meta = with lib; {
35 homepage = "http://crummy.com/software/BeautifulSoup/bs4/";
36 description = "HTML and XML parser";
37 license = licenses.mit;
38 maintainers = with maintainers; [ domenkozar ];
39 };
40}