Files
nixpkgs/pkgs/development/python-modules/microdata/default.nix
T
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

38 lines
731 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 = with lib; {
description = "Library for extracting html microdata";
mainProgram = "microdata";
homepage = "https://github.com/edsu/microdata";
license = licenses.cc0;
maintainers = with maintainers; [ ambroisie ];
};
}