1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitLab,
5 setuptools,
6 pytestCheckHook,
7 beautifulsoup4,
8}:
9
10buildPythonPackage rec {
11 pname = "airium";
12 version = "0.2.6";
13 pyproject = true;
14
15 src = fetchFromGitLab {
16 owner = "kamichal";
17 repo = "airium";
18 rev = "v${version}";
19 hash = "sha256-qAU+rmj2ZHw7KdxVvRyponcPiRcyENfDyW1y9JTiwsY=";
20 };
21
22 propagatedBuildInputs = [ setuptools ];
23
24 nativeCheckInputs = [
25 pytestCheckHook
26 beautifulsoup4
27 ];
28
29 # tests require internet access, broken in sandbox
30 disabledTests = [
31 "test_get_bad_content_type"
32 "test_translate_remote_file"
33 ];
34
35 meta = with lib; {
36 description = "Bidirectional HTML-python translator";
37 mainProgram = "airium";
38 homepage = "https://gitlab.com/kamichal/airium";
39 license = licenses.mit;
40 maintainers = with maintainers; [ hulr ];
41 };
42}