3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/html5lib/default.nix

46 lines
1.1 KiB
Nix
Raw Normal View History

2017-12-31 10:54:08 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, flake8
2019-12-20 16:31:14 +00:00
, pytest_4
2017-12-31 10:54:08 +00:00
, pytest-expect
, mock
, six
, webencodings
}:
buildPythonPackage rec {
pname = "html5lib";
2017-12-31 10:54:24 +00:00
version = "1.0.1";
2017-12-31 10:54:08 +00:00
src = fetchPypi {
inherit pname version;
2017-12-31 10:54:24 +00:00
sha256 = "66cb0dcfdbbc4f9c3ba1a63fdb511ffdbd4f513b2b6d81b80cd26ce6b3fb3736";
2017-12-31 10:54:08 +00:00
};
2019-12-20 16:31:14 +00:00
checkInputs = [ flake8 pytest_4 pytest-expect mock ];
2017-12-31 10:54:08 +00:00
propagatedBuildInputs = [
six webencodings
];
checkPhase = ''
# remove test causing error
# https://github.com/html5lib/html5lib-python/issues/411
rm html5lib/tests/test_stream.py
2017-12-31 10:54:08 +00:00
py.test
'';
meta = {
homepage = https://github.com/html5lib/html5lib-python;
downloadPage = https://github.com/html5lib/html5lib-python/releases;
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 16:31:14 +00:00
}