about summary refs log tree commit diff
path: root/pkgs/development/python-modules/airium/default.nix
blob: b61cd573fb4bc4c13996df53bf1595b499459e57 (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
39
40
41
42
43
{ lib
, buildPythonPackage
, fetchFromGitLab
, setuptools
, pytestCheckHook
, beautifulsoup4
}:

buildPythonPackage rec {
  pname = "airium";
  version = "0.2.6";
  pyproject = true;

  src = fetchFromGitLab {
    owner = "kamichal";
    repo = "airium";
    rev = "v${version}";
    hash = "sha256-qAU+rmj2ZHw7KdxVvRyponcPiRcyENfDyW1y9JTiwsY=";
  };

  propagatedBuildInputs = [
    setuptools
  ];

  nativeCheckInputs = [
    pytestCheckHook
    beautifulsoup4
  ];

  # tests require internet access, broken in sandbox
  disabledTests = [
    "test_get_bad_content_type"
    "test_translate_remote_file"
  ];

  meta = with lib; {
    description = "Bidirectional HTML-python translator";
    mainProgram = "airium";
    homepage = "https://gitlab.com/kamichal/airium";
    license = licenses.mit;
    maintainers = with maintainers; [ hulr ];
  };
}