1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, html5lib
5, unittestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "microdata";
10 version = "0.8.0";
11
12 src = fetchFromGitHub {
13 owner = "edsu";
14 repo = "microdata";
15 rev = "v${version}";
16 hash = "sha256-BAygCLBLxZ033ZWRFSR52dSM2nPY8jXplDXQ8WW3KPo=";
17 };
18
19 propagatedBuildInputs = [
20 html5lib
21 ];
22
23 nativeCheckInputs = [
24 unittestCheckHook
25 ];
26
27 pythonImportsCheck = [ "microdata" ];
28
29 meta = with lib; {
30 description = "Library for extracting html microdata";
31 homepage = "https://github.com/edsu/microdata";
32 license = licenses.cc0;
33 maintainers = with maintainers; [ ambroisie ];
34 };
35}