1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, lxml
5, pytestCheckHook
6, pythonOlder
7, requests
8}:
9
10buildPythonPackage rec {
11 pname = "inscriptis";
12 version = "2.3.2";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "weblyzard";
19 repo = "inscriptis";
20 rev = "refs/tags/${version}";
21 hash = "sha256-grsyHqt7ahiNsYKcZN/c5cJaag/nTWTBcaHaXnW1SpU=";
22 };
23
24 propagatedBuildInputs = [
25 lxml
26 requests
27 ];
28
29 nativeCheckInputs = [
30 pytestCheckHook
31 ];
32
33 pythonImportsCheck = [
34 "inscriptis"
35 ];
36
37 meta = with lib; {
38 description = "HTML to text converter";
39 homepage = "https://github.com/weblyzard/inscriptis";
40 changelog = "https://github.com/weblyzard/inscriptis/releases/tag/${version}";
41 license = licenses.asl20;
42 maintainers = with maintainers; [ ];
43 };
44}