mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-26 18:24:53 +00:00
python3Packages.deepsearch-toolkit: cleanup, disable tests
This commit is contained in:
@@ -2,7 +2,11 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
|
||||
# build-system
|
||||
poetry-core,
|
||||
|
||||
# dependencies
|
||||
certifi,
|
||||
docling-core,
|
||||
platformdirs,
|
||||
@@ -20,18 +24,18 @@
|
||||
anyio,
|
||||
fastapi,
|
||||
uvicorn,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "deepsearch-toolkit";
|
||||
version = "2.0.1";
|
||||
pyproject = true;
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "DS4SD";
|
||||
repo = "deepsearch-toolkit";
|
||||
tag = "v${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-nrz9pvyA5gPIaKt6CsJOB9cLy3sXiWW5e1Rk4vtNIY8=";
|
||||
};
|
||||
|
||||
@@ -61,8 +65,7 @@ buildPythonPackage rec {
|
||||
"urllib3"
|
||||
];
|
||||
|
||||
optional-dependencies = rec {
|
||||
all = api;
|
||||
optional-dependencies = {
|
||||
api = [
|
||||
anyio
|
||||
fastapi
|
||||
@@ -70,25 +73,19 @@ buildPythonPackage rec {
|
||||
];
|
||||
};
|
||||
|
||||
pythonImportsCheck = [
|
||||
"deepsearch"
|
||||
];
|
||||
pythonImportsCheck = [ "deepsearch" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Tests require the creation of a deepsearch profile
|
||||
"test_project_listing"
|
||||
"test_system_info"
|
||||
];
|
||||
# The remaining tests either require the creation of a deepsearch profile, or
|
||||
# exercise the deprecated `export_to_markdown`, which relies on the legacy
|
||||
# document models docling-core removed in favor of empty import shims:
|
||||
# https://github.com/docling-project/docling-core/pull/644
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/DS4SD/deepsearch-toolkit/blob/${src.tag}/CHANGELOG.md";
|
||||
changelog = "https://github.com/DS4SD/deepsearch-toolkit/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
||||
description = "Interact with the Deep Search platform for new knowledge explorations and discoveries";
|
||||
homepage = "https://github.com/DS4SD/deepsearch-toolkit";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user