Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 43 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 hatchling, 7 httpx, 8}: 9 10buildPythonPackage rec { 11 pname = "tika-client"; 12 version = "0.7.0"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.8"; 16 17 src = fetchFromGitHub { 18 owner = "stumpylog"; 19 repo = "tika-client"; 20 rev = "refs/tags/${version}"; 21 hash = "sha256-0cv2HaquIUQOb5CPkCxSYvXDzu3OV7WKIT80jI+pjpY="; 22 }; 23 24 build-system = [ hatchling ]; 25 26 dependencies = [ httpx ]; 27 28 pythonImportsCheck = [ "tika_client" ]; 29 30 # Almost all of the tests (all except one in 0.1.0) fail since there 31 # is no tika http API endpoint reachable. Since tika is not yet 32 # packaged for nixpkgs, it seems like an unreasonable amount of effort 33 # fixing these tests. 34 doChecks = false; 35 36 meta = with lib; { 37 description = "Modern Python REST client for Apache Tika server"; 38 homepage = "https://github.com/stumpylog/tika-client"; 39 changelog = "https://github.com/stumpylog/tika-client/blob/${version}/CHANGELOG.md"; 40 license = licenses.mpl20; 41 maintainers = with maintainers; [ e1mo ]; 42 }; 43}