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