depot/third_party/nixpkgs/pkgs/development/python-modules/html-text/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

38 lines
697 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, lxml
, six
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "html-text";
version = "0.5.2";
format = "setuptools";
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 ];
};
}