Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: dec0c17af2da^
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 331c44dd7474
Choose a head ref
  • 2 commits
  • 3 files changed
  • 1 contributor

Commits on Jan 7, 2018

  1. Copy the full SHA
    dec0c17 View commit details
  2. Copy the full SHA
    331c44d View commit details
Showing with 51 additions and 36 deletions.
  1. +10 −4 pkgs/development/python-modules/ansicolors/default.nix
  2. +40 −0 pkgs/development/python-modules/bleach/default.nix
  3. +1 −32 pkgs/top-level/python-packages.nix
14 changes: 10 additions & 4 deletions pkgs/development/python-modules/ansicolors/default.nix
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
{ stdenv, buildPythonPackage, fetchPypi }:
{ stdenv, buildPythonPackage, fetchPypi, pytest }:

buildPythonPackage rec {
pname = "ansicolors";
version = "1.0.2";
name = "${pname}-${version}";
version = "1.1.8";

src = fetchPypi {
inherit pname version;
sha256 = "02lmh2fbqcwr98cq13l9ql0fvyad1dcb3ap3c5xq9qwjp45m6r3n";
extension = "zip";
sha256 = "99f94f5e3348a0bcd43c82e5fc4414013ccc19d70bd939ad71e0133ce9c372e0";
};

checkInputs = [ pytest ];

checkPhase = ''
py.test
'';

meta = with stdenv.lib; {
homepage = https://github.com/verigak/colors/;
description = "ANSI colors for Python";
40 changes: 40 additions & 0 deletions pkgs/development/python-modules/bleach/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
33 changes: 1 addition & 32 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -1745,38 +1745,7 @@ in {

httpserver = callPackage ../development/python-modules/httpserver {};

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

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

buildInputs = with self; [ pytest pytestrunner ];
propagatedBuildInputs = with self; [ 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 = licenses.asl20;
maintainers = with maintainers; [ prikhi ];
};
};
bleach = callPackage ../development/python-modules/bleach { };

# needed for tensorflow-tensorboard
bleach_1_5_0 = self.bleach.overridePythonAttrs rec {