1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 lxml,
7 fastapi,
8 httpx,
9 pytestCheckHook,
10 pythonOlder,
11 requests,
12}:
13
14buildPythonPackage rec {
15 pname = "inscriptis";
16 version = "2.6.0";
17 pyproject = true;
18
19 disabled = pythonOlder "3.9";
20
21 src = fetchFromGitHub {
22 owner = "weblyzard";
23 repo = "inscriptis";
24 tag = version;
25 hash = "sha256-+qLHdQ4i/PYSUCZLYV3BguXjacjs7aB3MP0rJegv+dI=";
26 };
27
28 build-system = [ poetry-core ];
29
30 dependencies = [
31 lxml
32 requests
33 ];
34
35 nativeCheckInputs = [
36 fastapi
37 httpx
38 pytestCheckHook
39 ];
40
41 pythonImportsCheck = [ "inscriptis" ];
42
43 meta = with lib; {
44 description = "HTML to text converter";
45 mainProgram = "inscript.py";
46 homepage = "https://github.com/weblyzard/inscriptis";
47 changelog = "https://github.com/weblyzard/inscriptis/releases/tag/${src.tag}";
48 license = licenses.asl20;
49 maintainers = [ ];
50 };
51}