nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 49 lines 877 B view raw
1{ 2 lib, 3 beautifulsoup4, 4 buildPythonPackage, 5 chardet, 6 fetchFromGitHub, 7 lxml, 8 pkg-config, 9 pkgs, 10 pytestCheckHook, 11}: 12 13buildPythonPackage rec { 14 pname = "html5-parser"; 15 version = "0.4.12"; 16 format = "setuptools"; 17 18 src = fetchFromGitHub { 19 owner = "kovidgoyal"; 20 repo = "html5-parser"; 21 tag = "v${version}"; 22 hash = "sha256-0Qn+To/d3+HMx+KhhgJBEHVYPOfIeBnngBraY7r4uSs="; 23 }; 24 25 nativeBuildInputs = [ pkg-config ]; 26 27 buildInputs = [ pkgs.libxml2 ]; 28 29 propagatedBuildInputs = [ 30 chardet 31 lxml 32 ]; 33 34 nativeCheckInputs = [ 35 beautifulsoup4 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ "html5_parser" ]; 40 41 enabledTestPaths = [ "test/*.py" ]; 42 43 meta = { 44 description = "Fast C based HTML 5 parsing for python"; 45 homepage = "https://html5-parser.readthedocs.io"; 46 license = lib.licenses.asl20; 47 maintainers = [ ]; 48 }; 49}