f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
hatchling,
|
|
httpx,
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "tika-client";
|
|
version = "0.6.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "stumpylog";
|
|
repo = "tika-client";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-1Gc/WF8eEGT17z2CiuSLUIngDZVoHdBhfsUddNUBwWo=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
hatchling
|
|
httpx
|
|
];
|
|
pythonImportsCheck = [ "tika_client" ];
|
|
# 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; {
|
|
description = "Modern Python REST client for Apache Tika server";
|
|
homepage = "https://github.com/stumpylog/tika-client";
|
|
changelog = "https://github.com/stumpylog/tika-client/blob/${version}/CHANGELOG.md";
|
|
license = licenses.mpl20;
|
|
maintainers = with maintainers; [ e1mo ];
|
|
};
|
|
}
|