2017-07-28 09:19:13 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pkgs, pkgconfig, chardet, lxml }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "html5-parser";
|
2019-08-05 19:23:54 +00:00
|
|
|
version = "0.4.8";
|
2017-07-28 09:19:13 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-08-05 19:23:54 +00:00
|
|
|
sha256 = "00d1zfk72xzyibh7l4ib57y0isn5gic7avgbh7afbkk99iwd5smi";
|
2017-07-28 09:19:13 +00:00
|
|
|
};
|
|
|
|
|
2017-09-05 21:25:26 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2017-07-28 09:19:13 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|