From 9b034c96c3a26e23a29942bfdb5c95fac0c68b65 Mon Sep 17 00:00:00 2001 From: Pavan Rikhi Date: Mon, 15 Dec 2014 03:53:37 -0500 Subject: [PATCH] python html5lib: v0.95 -> v0.999 --- pkgs/top-level/python-packages.nix | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2be717594155..d9cc0d386ea5 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4733,18 +4733,32 @@ let html5lib = buildPythonPackage (rec { - name = "html5lib-0.95"; + version = "0.999"; + name = "html5lib-${version}"; src = pkgs.fetchurl { - url = "http://pypi.python.org/packages/source/h/html5lib/${name}.tar.gz"; - md5 = "fe607f9917d81763e842f818f23464ee"; + url = "http://github.com/html5lib/html5lib-python/archive/${version}.tar.gz"; + sha256 = "1kxl36p0csssaf37zbbc9p4h8l1s7yb1qnfv3d4nixplvrxqkybp"; }; - meta = { - homepage = http://code.google.com/p/html5lib/; + buildInputs = with self; [ nose flake8 ]; + propagatedBuildInputs = with self; [ + six + ] ++ optionals isPy26 [ ordereddict ]; + + checkPhase = "nosetests"; + + meta = with stdenv.lib; { + homepage = https://github.com/html5lib/html5lib-python; + downloadPage = https://github.com/html5lib/html5lib-python/releases; description = "HTML parser based on WHAT-WG HTML5 specification"; - license = stdenv.lib.licenses.mit; - maintainers = [ stdenv.lib.maintainers.iElectric ]; + longDescription = '' + html5lib is a pure-python library for parsing HTML. It is designed to + conform to the WHATWG HTML specification, as is implemented by all + major web browsers. + ''; + license = licenses.mit; + maintainers = with maintainers; [ iElectric prikhi ]; }; });