Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / inscriptis / default.nix
blob454106d28b5660ded5722513455f3076eb522744
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , poetry-core
5 , lxml
6 , fastapi
7 , httpx
8 , pytestCheckHook
9 , pythonOlder
10 , requests
13 buildPythonPackage rec {
14   pname = "inscriptis";
15   version = "2.5.0";
16   pyproject = true;
18   disabled = pythonOlder "3.7";
20   src = fetchFromGitHub {
21     owner = "weblyzard";
22     repo = "inscriptis";
23     rev = "refs/tags/${version}";
24     hash = "sha256-9KEkXcdZ7USXfyIXGDrp4p4kJTzF2q30fvOccxF1hBU=";
25   };
27   build-system = [
28     poetry-core
29   ];
31   propagatedBuildInputs = [
32     lxml
33     requests
34   ];
36   nativeCheckInputs = [
37     fastapi
38     httpx
39     pytestCheckHook
40   ];
42   pythonImportsCheck = [
43     "inscriptis"
44   ];
46   meta = with lib; {
47     description = "HTML to text converter";
48     mainProgram = "inscript.py";
49     homepage = "https://github.com/weblyzard/inscriptis";
50     changelog = "https://github.com/weblyzard/inscriptis/releases/tag/${version}";
51     license = licenses.asl20;
52     maintainers = with maintainers; [ ];
53   };