2021-09-11 19:14:14 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, html5lib
|
|
|
|
, lxml
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, soupsieve
|
|
|
|
}:
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "beautifulsoup4";
|
2021-09-11 19:14:14 +01:00
|
|
|
version = "4.10.0";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-09-11 19:14:14 +01:00
|
|
|
sha256 = "sha256-wjrSPFIdgYlVpBUaZ9gVgDGdS/VI09SfQiOuBB/5iJE=";
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
|
2021-09-11 19:14:14 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
html5lib
|
|
|
|
lxml
|
|
|
|
soupsieve
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2017-09-05 10:16:41 +01:00
|
|
|
|
2021-09-11 19:14:14 +01:00
|
|
|
pythonImportsCheck = [ "bs4" ];
|
2019-02-14 07:37:11 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://crummy.com/software/BeautifulSoup/bs4/";
|
2017-09-05 10:16:41 +01:00
|
|
|
description = "HTML and XML parser";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
|
|
};
|
|
|
|
}
|