a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
51 lines
839 B
Nix
51 lines
839 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, chardet
|
|
, html5lib
|
|
, lxml
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, soupsieve
|
|
, sphinxHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "beautifulsoup4";
|
|
version = "4.11.1";
|
|
format = "setuptools";
|
|
outputs = ["out" "doc"];
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-rZqlW2XvKAjrQF9Gz3Tff8twRNXLwmSH+W6y7y5DZpM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
sphinxHook
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
chardet
|
|
html5lib
|
|
lxml
|
|
soupsieve
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"bs4"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "http://crummy.com/software/BeautifulSoup/bs4/";
|
|
description = "HTML and XML parser";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
};
|
|
}
|