2024-01-13 08:15:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildNpmPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
buildNpmPackage rec {
|
2024-01-13 08:15:51 +00:00
|
|
|
pname = "readability-extractor";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "0.0.11";
|
2024-01-13 08:15:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ArchiveBox";
|
|
|
|
repo = "readability-extractor";
|
2024-01-25 14:12:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-QzxwPonPrCDdVYHZ9rEfw8ok56lVZE82VykrfkdFh5I=";
|
2024-01-13 08:15:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontNpmBuild = true;
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
npmDepsHash = "sha256-F5lOGkhFlFVB8zTxrebWsPWRNfHgZ4Y2DqKED/z5riw=";
|
2024-01-13 08:15:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/ArchiveBox/readability-extractor";
|
|
|
|
description = "Javascript wrapper around Mozilla Readability for ArchiveBox to call as a oneshot CLI to extract article text";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ viraptor ];
|
|
|
|
mainProgram = "readability-extractor";
|
|
|
|
};
|
|
|
|
}
|