diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2017-12-31 11:54:08 +0100 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2017-12-31 11:54:08 +0100 |
commit | b6ea033a25c76f9dbe9bc149803d6d091537e10c (patch) | |
tree | b9b3de6b702ff23199716efc4b86a4082c4807f8 /pkgs/development/python-modules/html5lib | |
parent | ed1944ea0029b28aacc7823325b7b68aafa9c7b4 (diff) | |
download | nixlib-b6ea033a25c76f9dbe9bc149803d6d091537e10c.tar nixlib-b6ea033a25c76f9dbe9bc149803d6d091537e10c.tar.gz nixlib-b6ea033a25c76f9dbe9bc149803d6d091537e10c.tar.bz2 nixlib-b6ea033a25c76f9dbe9bc149803d6d091537e10c.tar.lz nixlib-b6ea033a25c76f9dbe9bc149803d6d091537e10c.tar.xz nixlib-b6ea033a25c76f9dbe9bc149803d6d091537e10c.tar.zst nixlib-b6ea033a25c76f9dbe9bc149803d6d091537e10c.zip |
python.pkgs.html5lib: move expression
Diffstat (limited to 'pkgs/development/python-modules/html5lib')
-rw-r--r-- | pkgs/development/python-modules/html5lib/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/html5lib/default.nix b/pkgs/development/python-modules/html5lib/default.nix new file mode 100644 index 000000000000..1d446caa9a56 --- /dev/null +++ b/pkgs/development/python-modules/html5lib/default.nix @@ -0,0 +1,42 @@ +{ lib +, buildPythonPackage +, fetchPypi +, flake8 +, pytest +, pytest-expect +, mock +, six +, webencodings +}: + +buildPythonPackage rec { + pname = "html5lib"; + version = "0.999999999"; + + src = fetchPypi { + inherit pname version; + sha256 = "1632ak23y4j78jdm24s6iqyf2kzfcmf6p4v141rd4a1hzl7pqx7f"; + }; + + checkInputs = [ flake8 pytest pytest-expect mock ]; + propagatedBuildInputs = [ + six webencodings + ]; + + checkPhase = '' + 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 ]; + }; +} \ No newline at end of file |