Merge pull request #135269 from fabaff/bump-bleach

python3Packages.bleach: 3.3.1 -> 4.0.0

authored by

Sandro and committed by
GitHub
039d86bb 9695eaee

+24 -13
+24 -13
pkgs/development/python-modules/bleach/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 - , pytest 5 - , pytest-runner 6 , six 7 , html5lib 8 , setuptools 9 , packaging 10 }: 11 12 buildPythonPackage rec { 13 pname = "bleach"; 14 - version = "3.3.1"; 15 16 src = fetchPypi { 17 inherit pname version; 18 - sha256 = "1yma53plrlw2llaqxv8yk0g5al0vvlywwzym18b78m3rm6jq6r1h"; 19 }; 20 21 - checkInputs = [ pytest pytest-runner ]; 22 - propagatedBuildInputs = [ packaging six html5lib setuptools ]; 23 24 - # Disable network tests 25 - checkPhase = '' 26 - pytest -k "not protocols" 27 - ''; 28 29 - meta = { 30 description = "An easy, HTML5, whitelisting HTML sanitizer"; 31 longDescription = '' 32 Bleach is an HTML sanitizing library that escapes or strips markup and ··· 41 ''; 42 homepage = "https://github.com/mozilla/bleach"; 43 downloadPage = "https://github.com/mozilla/bleach/releases"; 44 - license = lib.licenses.asl20; 45 - maintainers = with lib.maintainers; [ prikhi ]; 46 }; 47 }
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 + , pytestCheckHook 5 , six 6 , html5lib 7 , setuptools 8 , packaging 9 + , pythonOlder 10 }: 11 12 buildPythonPackage rec { 13 pname = "bleach"; 14 + version = "4.0.0"; 15 + disabled = pythonOlder "3.6"; 16 17 src = fetchPypi { 18 inherit pname version; 19 + sha256 = "sha256-/6kiHGrCk5nMUPzDNHM2bt0M+NXiy7u2MpbcMn+2fMg="; 20 }; 21 22 + propagatedBuildInputs = [ 23 + packaging 24 + six 25 + html5lib 26 + setuptools 27 + ]; 28 + 29 + checkInputs = [ 30 + pytestCheckHook 31 + ]; 32 33 + disabledTests = [ 34 + # Disable network tests 35 + "protocols" 36 + ]; 37 38 + pythonImportsCheck = [ "bleach" ]; 39 + 40 + meta = with lib; { 41 description = "An easy, HTML5, whitelisting HTML sanitizer"; 42 longDescription = '' 43 Bleach is an HTML sanitizing library that escapes or strips markup and ··· 52 ''; 53 homepage = "https://github.com/mozilla/bleach"; 54 downloadPage = "https://github.com/mozilla/bleach/releases"; 55 + license = licenses.asl20; 56 + maintainers = with maintainers; [ prikhi ]; 57 }; 58 }