2017-07-28 09:19:13 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pkgs, pkgconfig, chardet, lxml }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "html5-parser";
|
2017-08-24 17:34:20 +00:00
|
|
|
version = "0.4.4";
|
2017-07-28 09:19:13 +00:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-08-24 17:34:20 +00:00
|
|
|
sha256 = "b9f3a1d4cdb8742e8e4ecafab04bff541bde4ff09af233293ed0b94028ec1ab5";
|
2017-07-28 09:19:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pkgconfig ];
|
|
|
|
propagatedBuildInputs = [ chardet lxml pkgs.libxml2 ];
|
|
|
|
|
|
|
|
doCheck = false; # No such file or directory: 'run_tests.py'
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Fast C based HTML 5 parsing for python";
|
|
|
|
homepage = https://html5-parser.readthedocs.io;
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|