2017-07-28 11:19:13 +02:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pkgs, pkgconfig, chardet, lxml }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "html5-parser";
|
2019-11-19 15:35:36 +01:00
|
|
|
version = "0.4.9";
|
2017-07-28 11:19:13 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-11-19 15:35:36 +01:00
|
|
|
sha256 = "25fe8f6848cbc15187f6748c0695df32bcf1b37df6420b6a01b4ebe1ec1ed48f";
|
2017-07-28 11:19:13 +02:00
|
|
|
};
|
|
|
|
|
2017-09-05 23:25:26 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2017-07-28 11:19:13 +02: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";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://html5-parser.readthedocs.io";
|
2017-07-28 11:19:13 +02:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|