Files
nixpkgs/pkgs/development/python-modules/microdata/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
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>
2025-12-10 18:09:49 +01:00

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 ];
};
}