Skip to content

Commit

Permalink
python.pkgs.bleach: 1.5.0 -> 2.0.0
Browse files Browse the repository at this point in the history
Fixes #23854.

(cherry picked from commit 648db95)
  • Loading branch information
abbradar authored and FRidh committed Mar 14, 2017
1 parent 36a3737 commit 00fa471
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -2911,7 +2911,7 @@ in {
};
};

# Needed for bleach 1.5.0 and calibre 2.76.0
# Needed for FlexGet 1.2.337 and calibre 2.76.0
html5lib_0_9999999 = self.html5lib.override rec {
name = "html5lib-${version}";
buildInputs = with self; [ nose flake8 ];
Expand All @@ -2929,21 +2929,16 @@ in {

bleach = buildPythonPackage rec {
pname = "bleach";
version = "1.5.0";
version = "2.0.0";
name = "${pname}-${version}";

src = pkgs.fetchurl {
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
sha256 = "978e758599b54cd3caa2e160d74102879b230ea8dc93871d0783721eef58bc65";
sha256 = "0c5w7hh70lqzca7ir71j891csvch1899r8q09zgswk1y00q22lmr";
};

buildInputs = with self; [ pytest pytestrunner ];
propagatedBuildInputs = with self; [ six html5lib_0_9999999 ];

postPatch = ''
substituteInPlace setup.py --replace "==3.0.3" ""
substituteInPlace setup.py --replace ">=0.999,!=0.9999,!=0.99999,<0.99999999" ""
'';
propagatedBuildInputs = with self; [ six html5lib ];

meta = {
description = "An easy, HTML5, whitelisting HTML sanitizer";
Expand Down

0 comments on commit 00fa471

Please sign in to comment.