2022-10-21 18:38:19 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2024-04-21 15:54:59 +00:00
|
|
|
, poetry-core
|
2022-10-21 18:38:19 +00:00
|
|
|
, lxml
|
2024-04-21 15:54:59 +00:00
|
|
|
, fastapi
|
|
|
|
, httpx
|
2022-10-21 18:38:19 +00:00
|
|
|
, pytestCheckHook
|
2023-01-11 07:51:40 +00:00
|
|
|
, pythonOlder
|
2022-10-21 18:38:19 +00:00
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "inscriptis";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.5.0";
|
|
|
|
pyproject = true;
|
2022-10-21 18:38:19 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "weblyzard";
|
|
|
|
repo = "inscriptis";
|
2023-01-11 07:51:40 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-9KEkXcdZ7USXfyIXGDrp4p4kJTzF2q30fvOccxF1hBU=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
lxml
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
fastapi
|
|
|
|
httpx
|
2022-10-21 18:38:19 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"inscriptis"
|
|
|
|
];
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2023-01-11 07:51:40 +00:00
|
|
|
description = "HTML to text converter";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "inscript.py";
|
2022-10-21 18:38:19 +00:00
|
|
|
homepage = "https://github.com/weblyzard/inscriptis";
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/weblyzard/inscriptis/releases/tag/${version}";
|
2022-10-21 18:38:19 +00:00
|
|
|
license = licenses.asl20;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
}
|