mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 04:13:01 +00:00
python310Packages.bleach: add optional-dependencies
This commit is contained in:
parent
e6e6bad81b
commit
1ef616a56c
@ -5,14 +5,16 @@
|
||||
, six
|
||||
, html5lib
|
||||
, setuptools
|
||||
, tinycss2
|
||||
, packaging
|
||||
, pythonOlder
|
||||
, webencodings
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bleach";
|
||||
version = "5.0.1";
|
||||
disabled = pythonOlder "3.6";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
@ -20,12 +22,19 @@ buildPythonPackage rec {
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
packaging
|
||||
six
|
||||
html5lib
|
||||
packaging
|
||||
setuptools
|
||||
six
|
||||
webencodings
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
css = [
|
||||
tinycss2
|
||||
];
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
@ -35,7 +44,9 @@ buildPythonPackage rec {
|
||||
"protocols"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "bleach" ];
|
||||
pythonImportsCheck = [
|
||||
"bleach"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "An easy, HTML5, whitelisting HTML sanitizer";
|
||||
|
Loading…
Reference in New Issue
Block a user