python310Packages.html5-parser: run tests
This commit is contained in:
parent
e9583cc89d
commit
d479ac2b8e
1 changed files with 39 additions and 8 deletions
|
@ -1,28 +1,59 @@
|
|||
{ lib, buildPythonPackage, fetchPypi, pkgs, pkg-config, chardet, lxml, beautifulsoup4 }:
|
||||
{ lib
|
||||
, beautifulsoup4
|
||||
, buildPythonPackage
|
||||
, chardet
|
||||
, fetchFromGitHub
|
||||
, lxml
|
||||
, pkg-config
|
||||
, pkgs
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "html5-parser";
|
||||
version = "0.4.11";
|
||||
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-hbsW+qPN88bGhC4Mss4CgHy678bjuw87jhjavlEHB2M=";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kovidgoyal";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-l7cCt+zX+qOujS6noc1/p7mELqrHae3eiKQNXBxLm7o=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
propagatedBuildInputs = [ chardet lxml pkgs.libxml2 ];
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ beautifulsoup4 ];
|
||||
buildInputs = [
|
||||
pkgs.libxml2
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
chardet
|
||||
lxml
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
beautifulsoup4
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"html5_parser"
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"test/*.py"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Fast C based HTML 5 parsing for python";
|
||||
homepage = "https://html5-parser.readthedocs.io";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue