Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.0 kB · 108 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109{ lib, buildPythonPackage, fetchPypi, fetchpatch,
# build-system hatchling,
# docs sphinxHook,
# dependencies soupsieve, typing-extensions,
# optional-dependencies chardet, charset-normalizer, faust-cchardet, html5lib, lxml,
# tests pytestCheckHook,
# for passthru.tests html-sanitizer, markdownify, mechanicalsoup, nbconvert, subliminal, wagtail,}:
buildPythonPackage rec { pname = "beautifulsoup4"; version = "4.13.4"; pyproject = true;
outputs = [ "out" "doc" ];
src = fetchPypi { inherit pname version; hash = "sha256-27PE4c6uau/r2vJCMkcmDNBiQwpBDjjGbyuqUKhDcZU="; };
patches = [ # backport test fix for behavior changes in libxml 2.14.3 (fetchpatch { url = "https://git.launchpad.net/beautifulsoup/patch/?id=53d328406ec8c37c0edbd00ace3782be63e2e7e5"; excludes = [ "CHANGELOG" ]; hash = "sha256-RtavbpnfT6x0A8L3tAvCXwKUpty1ASPGJKdks7evBr8="; }) ];
build-system = [ hatchling ];
nativeBuildInputs = [ sphinxHook ];
dependencies = [ soupsieve typing-extensions ];
optional-dependencies = { chardet = [ chardet ]; cchardet = [ faust-cchardet ]; charset-normalizer = [ charset-normalizer ]; html5lib = [ html5lib ]; lxml = [ lxml ]; };
nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (lib.attrValues optional-dependencies);
disabledTests = [ # fail with latest libxml, by not actually rejecting "test_rejected_markup" "test_rejected_input" ];
pythonImportsCheck = [ "bs4" ];
passthru.tests = { inherit html-sanitizer markdownify mechanicalsoup nbconvert subliminal wagtail ; };
meta = with lib; { changelog = "https://git.launchpad.net/beautifulsoup/tree/CHANGELOG?h=${version}"; description = "HTML and XML parser"; homepage = "http://crummy.com/software/BeautifulSoup/bs4/"; license = licenses.mit; maintainers = with maintainers; [ ]; };}