Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, buildPythonPackage, fetchPypi, pkgs, pkgconfig, chardet, lxml }: 2 3buildPythonPackage rec { 4 pname = "html5-parser"; 5 version = "0.4.9"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "25fe8f6848cbc15187f6748c0695df32bcf1b37df6420b6a01b4ebe1ec1ed48f"; 10 }; 11 12 nativeBuildInputs = [ pkgconfig ]; 13 propagatedBuildInputs = [ chardet lxml pkgs.libxml2 ]; 14 15 doCheck = false; # No such file or directory: 'run_tests.py' 16 17 meta = with stdenv.lib; { 18 description = "Fast C based HTML 5 parsing for python"; 19 homepage = "https://html5-parser.readthedocs.io"; 20 license = licenses.asl20; 21 }; 22}