about summary refs log tree commit diff
path: root/pkgs/development/python-modules/html-text/default.nix
blob: 00d2fb426d3818e58a2586073f85d1f5f9234510 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ 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 ];
  };
}