diff --git a/pkgs/development/python-modules/tika-client/default.nix b/pkgs/development/python-modules/tika-client/default.nix index 704dddf4a74f..8734b178f890 100644 --- a/pkgs/development/python-modules/tika-client/default.nix +++ b/pkgs/development/python-modules/tika-client/default.nix @@ -5,18 +5,20 @@ anyio, hatchling, httpx, + niquests, + requests, }: buildPythonPackage rec { pname = "tika-client"; - version = "0.11.0"; + version = "1.0.0"; pyproject = true; src = fetchFromGitHub { owner = "stumpylog"; repo = "tika-client"; tag = version; - hash = "sha256-vVS+1RmJVURz25jlABsJBqL02GgAY18AeWag0GUmRWQ="; + hash = "sha256-ZXtNHjdbAzur6lRZIom+wDMhXgpqQxvHPQMxjXJDwlw="; }; build-system = [ hatchling ]; @@ -26,6 +28,12 @@ buildPythonPackage rec { httpx ]; + optional-dependencies = { + httpx = [ httpx ]; + niquests = [ niquests ]; + requests = [ requests ]; + }; + pythonImportsCheck = [ "tika_client" ]; # The tests expect the tika-server to run in a docker container