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