summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/tika-client/default.nix
blob: 0cf177137a8114bb5c888d11fec145775a3bdb1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  anyio,
  hatchling,
  httpx,
}:

buildPythonPackage rec {
  pname = "tika-client";
  version = "0.10.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "stumpylog";
    repo = "tika-client";
    tag = version;
    hash = "sha256-XYyMp+02lWzE+3Txr+shVGVwalLEJHvoy988tA7SWgY=";
  };

  build-system = [ hatchling ];

  dependencies = [
    anyio
    httpx
  ];

  pythonImportsCheck = [ "tika_client" ];

  # The tests expect the tika-server to run in a docker container
  doChecks = false;

  meta = {
    description = "Modern Python REST client for Apache Tika server";
    homepage = "https://github.com/stumpylog/tika-client";
    changelog = "https://github.com/stumpylog/tika-client/blob/${src.tag}/CHANGELOG.md";
    license = lib.licenses.mpl20;
    maintainers = with lib.maintainers; [ e1mo ];
  };
}