diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-08-22 14:13:56 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-08-22 14:13:56 +0200 |
commit | 6ea03e770a9e907ef35df977b0e55c19589d3ea6 (patch) | |
tree | 703784510e9151c8ed48b9b21f23878280139a03 /pkgs/development/python-modules/bleach | |
parent | 45d3c11c725e79b837df299b269771215bdba3a3 (diff) | |
download | nixpkgs-6ea03e770a9e907ef35df977b0e55c19589d3ea6.tar nixpkgs-6ea03e770a9e907ef35df977b0e55c19589d3ea6.tar.gz nixpkgs-6ea03e770a9e907ef35df977b0e55c19589d3ea6.tar.bz2 nixpkgs-6ea03e770a9e907ef35df977b0e55c19589d3ea6.tar.lz nixpkgs-6ea03e770a9e907ef35df977b0e55c19589d3ea6.tar.xz nixpkgs-6ea03e770a9e907ef35df977b0e55c19589d3ea6.tar.zst nixpkgs-6ea03e770a9e907ef35df977b0e55c19589d3ea6.zip |
python3Packages.bleach: 3.3.1 -> 4.0.0
Diffstat (limited to 'pkgs/development/python-modules/bleach')
-rw-r--r-- | pkgs/development/python-modules/bleach/default.nix | 37 |
1 files changed, 24 insertions, 13 deletions
diff --git a/pkgs/development/python-modules/bleach/default.nix b/pkgs/development/python-modules/bleach/default.nix index 5f09dda0f44..0827e5519a7 100644 --- a/pkgs/development/python-modules/bleach/default.nix +++ b/pkgs/development/python-modules/bleach/default.nix @@ -1,32 +1,43 @@ { lib , buildPythonPackage , fetchPypi -, pytest -, pytest-runner +, pytestCheckHook , six , html5lib , setuptools , packaging +, pythonOlder }: buildPythonPackage rec { pname = "bleach"; - version = "3.3.1"; + version = "4.0.0"; + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "1yma53plrlw2llaqxv8yk0g5al0vvlywwzym18b78m3rm6jq6r1h"; + sha256 = "sha256-/6kiHGrCk5nMUPzDNHM2bt0M+NXiy7u2MpbcMn+2fMg="; }; - checkInputs = [ pytest pytest-runner ]; - propagatedBuildInputs = [ packaging six html5lib setuptools ]; + propagatedBuildInputs = [ + packaging + six + html5lib + setuptools + ]; - # Disable network tests - checkPhase = '' - pytest -k "not protocols" - ''; + checkInputs = [ + pytestCheckHook + ]; - meta = { + disabledTests = [ + # Disable network tests + "protocols" + ]; + + pythonImportsCheck = [ "bleach" ]; + + meta = with lib; { description = "An easy, HTML5, whitelisting HTML sanitizer"; longDescription = '' Bleach is an HTML sanitizing library that escapes or strips markup and @@ -41,7 +52,7 @@ buildPythonPackage rec { ''; homepage = "https://github.com/mozilla/bleach"; downloadPage = "https://github.com/mozilla/bleach/releases"; - license = lib.licenses.asl20; - maintainers = with lib.maintainers; [ prikhi ]; + license = licenses.asl20; + maintainers = with maintainers; [ prikhi ]; }; } |