about summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2018-01-07 11:01:38 +0100
committerFrederik Rietdijk <fridh@fridh.nl>2018-01-20 12:05:22 +0100
commitf1c7f024f3351904bf81349d111e7d7c9c8ab78d (patch)
tree34a899cc144d96a9b7cb7b61422692f70bdf8b6a /pkgs/development/python-modules
parent48eab55d8bb92d56572d490ed6a167c0792cf9a5 (diff)
downloadnixlib-f1c7f024f3351904bf81349d111e7d7c9c8ab78d.tar
nixlib-f1c7f024f3351904bf81349d111e7d7c9c8ab78d.tar.gz
nixlib-f1c7f024f3351904bf81349d111e7d7c9c8ab78d.tar.bz2
nixlib-f1c7f024f3351904bf81349d111e7d7c9c8ab78d.tar.lz
nixlib-f1c7f024f3351904bf81349d111e7d7c9c8ab78d.tar.xz
nixlib-f1c7f024f3351904bf81349d111e7d7c9c8ab78d.tar.zst
nixlib-f1c7f024f3351904bf81349d111e7d7c9c8ab78d.zip
python.pkgs.bleach: move expression
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/bleach/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/bleach/default.nix b/pkgs/development/python-modules/bleach/default.nix
new file mode 100644
index 000000000000..dc417a54ca3e
--- /dev/null
+++ b/pkgs/development/python-modules/bleach/default.nix
@@ -0,0 +1,40 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, pytest
+, pytestrunner
+, six
+, html5lib
+}:
+
+buildPythonPackage rec {
+  pname = "bleach";
+  version = "2.0.0";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0c5w7hh70lqzca7ir71j891csvch1899r8q09zgswk1y00q22lmr";
+  };
+
+  checkInputs = [ pytest pytestrunner ];
+  propagatedBuildInputs = [ six html5lib ];
+
+  meta = {
+    description = "An easy, HTML5, whitelisting HTML sanitizer";
+    longDescription = ''
+      Bleach is an HTML sanitizing library that escapes or strips markup and
+      attributes based on a white list. Bleach can also linkify text safely,
+      applying filters that Django's urlize filter cannot, and optionally
+      setting rel attributes, even on links already in the text.
+
+      Bleach is intended for sanitizing text from untrusted sources. If you
+      find yourself jumping through hoops to allow your site administrators
+      to do lots of things, you're probably outside the use cases. Either
+      trust those users, or don't.
+    '';
+    homepage = https://github.com/mozilla/bleach;
+    downloadPage = https://github.com/mozilla/bleach/releases;
+    license = lib.licenses.asl20;
+    maintainers = with lib.maintainers; [ prikhi ];
+  };
+}
\ No newline at end of file