2017-07-28 10:19:13 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pkgs, pkgconfig, chardet, lxml }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "html5-parser";
|
2019-06-17 19:58:14 +01:00
|
|
|
version = "0.4.7";
|
2017-07-28 10:19:13 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-06-17 19:58:14 +01:00
|
|
|
sha256 = "1gzs9fa38m80y509fg58ylwhxgy7w28ww968pi6wmfrih9ib6l93";
|
2017-07-28 10:19:13 +01:00
|
|
|
};
|
|
|
|
|
2017-09-05 22:25:26 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2017-07-28 10:19:13 +01: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;
|
|
|
|
};
|
|
|
|
}
|