mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-21 15:30:27 +08:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
35 lines
724 B
Nix
35 lines
724 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
html5lib,
|
|
unittestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "microdata";
|
|
version = "0.8.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "edsu";
|
|
repo = "microdata";
|
|
rev = "v${version}";
|
|
hash = "sha256-BAygCLBLxZ033ZWRFSR52dSM2nPY8jXplDXQ8WW3KPo=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ html5lib ];
|
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "microdata" ];
|
|
|
|
meta = {
|
|
description = "Library for extracting html microdata";
|
|
mainProgram = "microdata";
|
|
homepage = "https://github.com/edsu/microdata";
|
|
license = lib.licenses.cc0;
|
|
maintainers = with lib.maintainers; [ ambroisie ];
|
|
};
|
|
}
|