2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
html5lib,
|
|
|
|
unittestCheckHook,
|
2022-10-06 18:32:54 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "microdata";
|
|
|
|
version = "0.8.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-10-06 18:32:54 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "edsu";
|
|
|
|
repo = "microdata";
|
|
|
|
rev = "v${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-BAygCLBLxZ033ZWRFSR52dSM2nPY8jXplDXQ8WW3KPo=";
|
2022-10-06 18:32:54 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ html5lib ];
|
2022-10-06 18:32:54 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
2022-10-06 18:32:54 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "microdata" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library for extracting html microdata";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "microdata";
|
2022-10-06 18:32:54 +00:00
|
|
|
homepage = "https://github.com/edsu/microdata";
|
|
|
|
license = licenses.cc0;
|
|
|
|
maintainers = with maintainers; [ ambroisie ];
|
|
|
|
};
|
|
|
|
}
|