mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-17 21:40:44 +08:00
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
62 lines
1.0 KiB
Nix
62 lines
1.0 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonRelaxDepsHook
|
|
, html-text
|
|
, jstyleson
|
|
, lxml
|
|
, mf2py
|
|
, pyrdfa3
|
|
, rdflib
|
|
, six
|
|
, w3lib
|
|
, pytestCheckHook
|
|
, mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "extruct";
|
|
version = "0.13.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "scrapinghub";
|
|
repo = "extruct";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-hf6b/tZLggHzgFmZ6aldZIBd17Ni7vCTIIzhNlyjvxw=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
# rdflib-jsonld functionality is part of rdblib from version 6 onwards
|
|
pythonRemoveDeps = [
|
|
"rdflib-jsonld"
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
html-text
|
|
jstyleson
|
|
lxml
|
|
mf2py
|
|
pyrdfa3
|
|
rdflib
|
|
six
|
|
w3lib
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "extruct" ];
|
|
|
|
meta = with lib; {
|
|
description = "Extract embedded metadata from HTML markup";
|
|
homepage = "https://github.com/scrapinghub/extruct";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ ambroisie ];
|
|
};
|
|
}
|