python310Packages.extruct: init at 0.13.0
This commit is contained in:
parent
8c3ae3902d
commit
48919bc224
61
pkgs/development/python-modules/extruct/default.nix
Normal file
61
pkgs/development/python-modules/extruct/default.nix
Normal file
@ -0,0 +1,61 @@
|
||||
{ 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
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -3138,6 +3138,8 @@ in {
|
||||
|
||||
extras = callPackage ../development/python-modules/extras { };
|
||||
|
||||
extruct = callPackage ../development/python-modules/extruct { };
|
||||
|
||||
eyeD3 = callPackage ../development/python-modules/eyed3 { };
|
||||
|
||||
ezdxf = callPackage ../development/python-modules/ezdxf { };
|
||||
|
Loading…
Reference in New Issue
Block a user