depot/third_party/nixpkgs/pkgs/development/python-modules/beautifulsoup4/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

53 lines
927 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, chardet
, html5lib
, lxml
, pytestCheckHook
, pythonOlder
, soupsieve
, sphinxHook
}:
buildPythonPackage rec {
pname = "beautifulsoup4";
version = "4.11.2";
format = "setuptools";
outputs = ["out" "doc"];
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-vEvdpnF95aKYdDb7jXL0XckN2Fa9/VEqExTOkDSaAQY=";
};
nativeBuildInputs = [
sphinxHook
];
propagatedBuildInputs = [
chardet
html5lib
lxml
soupsieve
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"bs4"
];
meta = with lib; {
changelog = "https://git.launchpad.net/beautifulsoup/tree/CHANGELOG?h=${version}";
homepage = "http://crummy.com/software/BeautifulSoup/bs4/";
description = "HTML and XML parser";
license = licenses.mit;
maintainers = with maintainers; [ domenkozar ];
};
}