nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchPypi
4, html5lib
5, lxml
6, pytestCheckHook
7, pythonOlder
8, soupsieve
9, sphinxHook
10}:
11
12buildPythonPackage rec {
13 pname = "beautifulsoup4";
14 version = "4.11.1";
15 format = "setuptools";
16 outputs = ["out" "doc"];
17
18 disabled = pythonOlder "3.6";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-rZqlW2XvKAjrQF9Gz3Tff8twRNXLwmSH+W6y7y5DZpM=";
23 };
24
25 propagatedBuildInputs = [
26 html5lib
27 lxml
28 soupsieve
29 ];
30
31 checkInputs = [
32 pytestCheckHook
33 ];
34 nativeBuildInputs = [ sphinxHook ];
35
36 pythonImportsCheck = [
37 "bs4"
38 ];
39
40 meta = with lib; {
41 homepage = "http://crummy.com/software/BeautifulSoup/bs4/";
42 description = "HTML and XML parser";
43 license = licenses.mit;
44 maintainers = with maintainers; [ domenkozar ];
45 };
46}