nixpkgs/pkgs/development/python-modules/html5lib/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.4 KiB
Nix
Raw Normal View History

2017-12-31 11:54:08 +01:00
{
lib,
buildPythonPackage,
fetchPypi,
fetchpatch,
2017-12-31 11:54:08 +01:00
six,
webencodings,
mock,
pytest-expect,
pytestCheckHook,
2017-12-31 11:54:08 +01:00
}:
buildPythonPackage rec {
pname = "html5lib";
2020-08-16 19:31:03 +02:00
version = "1.1";
format = "setuptools";
2017-12-31 11:54:08 +01:00
src = fetchPypi {
inherit pname version;
2020-08-16 19:31:03 +02:00
sha256 = "b2e5b40261e20f354d198eae92afc10d750afb487ed5e50f9c4eaf07c184146f";
2017-12-31 11:54:08 +01:00
};
patches = [
# Fix compatibility with pytest 6.
# Will be included in the next release after 1.1.
(fetchpatch {
url = "https://github.com/html5lib/html5lib-python/commit/2c19b9899ab3a3e8bd0ca35e5d78544334204169.patch";
hash = "sha256-VGCeB6o2QO/skeCZs8XLPfgEYVOSRL8cCpG7ajbZWEs=";
})
];
2017-12-31 11:54:08 +01:00
propagatedBuildInputs = [
six
webencodings
2017-12-31 11:54:08 +01:00
];
# latest release not compatible with pytest 6
doCheck = false;
nativeCheckInputs = [
mock
pytest-expect
pytestCheckHook
];
2017-12-31 11:54:08 +01:00
meta = {
homepage = "https://github.com/html5lib/html5lib-python";
downloadPage = "https://github.com/html5lib/html5lib-python/releases";
2017-12-31 11:54:08 +01:00
description = "HTML parser based on WHAT-WG HTML5 specification";
longDescription = ''
html5lib is a pure-python library for parsing HTML. It is designed to
conform to the WHATWG HTML specification, as is implemented by all
major web browsers.
'';
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
domenkozar
prikhi
];
};
2019-12-20 08:31:14 -08:00
}