depot/third_party/nixpkgs/pkgs/development/python-modules/html-text/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

37 lines
672 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, lxml
, six
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "html-text";
version = "0.5.2";
src = fetchFromGitHub {
owner = "TeamHG-Memex";
repo = "html-text";
rev = version;
hash = "sha256-jw/hpz0QfcgP5OEJcmre0h1OzOfpPtaROxHm+YUqces=";
};
propagatedBuildInputs = [
lxml
];
nativeCheckInputs = [
pytestCheckHook
six
];
pythonImportsCheck = [ "html_text" ];
meta = with lib; {
description = "Extract text from HTML";
homepage = "https://github.com/TeamHG-Memex/html-text";
license = licenses.mit;
maintainers = with maintainers; [ ambroisie ];
};
}