2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
hatchling,
|
|
|
|
httpx,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tika-client";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.6.0";
|
2023-07-15 17:15:38 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "stumpylog";
|
|
|
|
repo = "tika-client";
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-1Gc/WF8eEGT17z2CiuSLUIngDZVoHdBhfsUddNUBwWo=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
hatchling
|
|
|
|
httpx
|
|
|
|
];
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "tika_client" ];
|
2023-07-15 17:15:38 +00:00
|
|
|
# Almost all of the tests (all except one in 0.1.0) fail since there
|
|
|
|
# is no tika http API endpoint reachable. Since tika is not yet
|
|
|
|
# packaged for nixpkgs, it seems like an unreasonable amount of effort
|
|
|
|
# fixing these tests.
|
|
|
|
doChecks = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Modern Python REST client for Apache Tika server";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://github.com/stumpylog/tika-client";
|
|
|
|
changelog = "https://github.com/stumpylog/tika-client/blob/${version}/CHANGELOG.md";
|
2023-11-16 04:20:00 +00:00
|
|
|
license = licenses.mpl20;
|
2023-07-15 17:15:38 +00:00
|
|
|
maintainers = with maintainers; [ e1mo ];
|
|
|
|
};
|
|
|
|
}
|