lol

python310Packages.bleach: add optional-dependencies

+15 -4
+15 -4
pkgs/development/python-modules/bleach/default.nix
··· 5 5 , six 6 6 , html5lib 7 7 , setuptools 8 + , tinycss2 8 9 , packaging 9 10 , pythonOlder 11 + , webencodings 10 12 }: 11 13 12 14 buildPythonPackage rec { 13 15 pname = "bleach"; 14 16 version = "5.0.1"; 15 - disabled = pythonOlder "3.6"; 17 + disabled = pythonOlder "3.7"; 16 18 17 19 src = fetchPypi { 18 20 inherit pname version; ··· 20 22 }; 21 23 22 24 propagatedBuildInputs = [ 23 - packaging 24 - six 25 25 html5lib 26 + packaging 26 27 setuptools 28 + six 29 + webencodings 27 30 ]; 28 31 32 + passthru.optional-dependencies = { 33 + css = [ 34 + tinycss2 35 + ]; 36 + }; 37 + 29 38 checkInputs = [ 30 39 pytestCheckHook 31 40 ]; ··· 35 44 "protocols" 36 45 ]; 37 46 38 - pythonImportsCheck = [ "bleach" ]; 47 + pythonImportsCheck = [ 48 + "bleach" 49 + ]; 39 50 40 51 meta = with lib; { 41 52 description = "An easy, HTML5, whitelisting HTML sanitizer";