Skip to content

Commit

Permalink
python312Packages.deepsearch-toolkit: init at 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Nov 6, 2024
1 parent 7abe7c5 commit 1e29604
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 0 deletions.
93 changes: 93 additions & 0 deletions pkgs/development/python-modules/deepsearch-toolkit/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
certifi,
docling-core,
platformdirs,
pluggy,
pydantic,
pydantic-settings,
python-dateutil,
python-dotenv,
requests,
six,
tabulate,
tqdm,
typer,
urllib3,
anyio,
fastapi,
uvicorn,
pytestCheckHook,
}:

buildPythonPackage rec {
pname = "deepsearch-toolkit";
version = "1.1.1";
pyproject = true;

src = fetchFromGitHub {
owner = "DS4SD";
repo = "deepsearch-toolkit";
rev = "refs/tags/v${version}";
hash = "sha256-7XiI/VtXX4lRMreqUh6hJvdIULGvsCEdrd+zV5Jrne0=";
};

build-system = [
poetry-core
];

dependencies = [
certifi
docling-core
platformdirs
pluggy
pydantic
pydantic-settings
python-dateutil
python-dotenv
requests
six
tabulate
tqdm
typer
urllib3
];

pythonRelaxDeps = [
"urllib3"
];

optional-dependencies = rec {
all = api;
api = [
anyio
fastapi
uvicorn
];
};

pythonImportsCheck = [
"deepsearch"
];

nativeCheckInputs = [
pytestCheckHook
];

disabledTests = [
# Tests require the creation of a deepsearch profile
"test_project_listing"
"test_system_info"
];

meta = {
changelog = "https://github.com/DS4SD/deepsearch-toolkit/blob/${src.rev}/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 = with lib.maintainers; [ drupol ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3058,6 +3058,8 @@ self: super: with self; {

deepmerge = callPackage ../development/python-modules/deepmerge { };

deepsearch-toolkit = callPackage ../development/python-modules/deepsearch-toolkit { };

deeptoolsintervals = callPackage ../development/python-modules/deeptoolsintervals { };

deepwave = callPackage ../development/python-modules/deepwave { };
Expand Down

0 comments on commit 1e29604

Please sign in to comment.