Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gpt-researcher: init at 3.0.7 #341928

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions pkgs/by-name/gp/gpt-researcher/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
lib,
python3,
fetchFromGitHub,
}:

python3.pkgs.buildPythonApplication rec {
pname = "gpt-researcher";
version = "3.0.7";
pyproject = true;

src = fetchFromGitHub {
owner = "assafelovic";
repo = "gpt-researcher";
rev = "v${version}";
hash = "sha256-XCSZrN8pmiNg14umqOAR0zRHvVdQAN/symeYIlDOB4c=";
};

build-system = [
python3.pkgs.poetry-core
];

dependencies = with python3.pkgs; [
aiofiles
arxiv
beautifulsoup4
colorama
duckduckgo-search
fastapi
htmldocx
jinja2
langchain
langchain-community
langchain-openai
langgraph
lxml
markdown
md2pdf
mistune
openai
permchain
pydantic
pymupdf
python-docx
python-dotenv
python-multipart
pyyaml
requests
sqlalchemy
tavily-python
tiktoken
unstructured
uvicorn
];

pythonImportsCheck = [
"gpt_researcher"
];

meta = {
description = "LLM based autonomous agent that does online comprehensive research on any given topic";
homepage = "https://github.com/assafelovic/gpt-researcher";
license = with lib.licenses; [
asl20
mit
];
maintainers = with lib.maintainers; [ happysalada ];
mainProgram = "gpt-researcher";
};
}
51 changes: 51 additions & 0 deletions pkgs/development/python-modules/arxiv/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
wheel,
feedparser,
pdoc,
pip-audit,
pytest,
requests,
ruff,
}:

buildPythonPackage rec {
pname = "arxiv";
version = "2.1.3";
pyproject = true;

src = fetchFromGitHub {
owner = "lukasschwab";
repo = "arxiv.py";
rev = version;
hash = "sha256-Niu3N0QTVxucboQx1FQq1757Hjj1VVWeDZn7O7YtjWY=";
};

build-system = [
setuptools
wheel
];

dependencies = [
feedparser
pdoc
pip-audit
pytest
requests
ruff
];

pythonImportsCheck = [
"arxiv"
];

meta = {
description = "Python wrapper for the arXiv API";
homepage = "https://github.com/lukasschwab/arxiv.py";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ happysalada ];
};
}
41 changes: 41 additions & 0 deletions pkgs/development/python-modules/htmldocx/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
wheel,
beautifulsoup4,
python-docx,
}:

buildPythonPackage rec {
pname = "htmldocx";
version = "0.0.6";
pyproject = true;

src = fetchPypi {
inherit pname version;
hash = "sha256-tLzsiV+G16UP/HEzyiTYXCTzYU2ys30zow2dBGVKVIY=";
};

build-system = [
setuptools
wheel
];

dependencies = [
beautifulsoup4
python-docx
];

pythonImportsCheck = [
"htmldocx"
];

meta = {
description = "Convert html to docx";
homepage = "https://pypi.org/project/htmldocx";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ];
};
}
40 changes: 40 additions & 0 deletions pkgs/development/python-modules/permchain/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
lib,
buildPythonPackage,
fetchPypi,
poetry-core,
langchain,
}:

buildPythonPackage rec {
pname = "permchain";
version = "0.0.8";
pyproject = true;

src = fetchPypi {
inherit pname version;
hash = "sha256-vp9tTa1v1oUP3E1xGM/KD2BpkoNgN2xRkb3Lei0ehMI=";
};

build-system = [
poetry-core
];

dependencies = [
langchain
];

pythonImportsCheck = [
"permchain"
];

meta = {
description = "Permchain";
homepage = "https://pypi.org/project/permchain";
license = with lib.licenses; [
elastic20
mit
];
maintainers = with lib.maintainers; [ happysalada ];
};
}
44 changes: 44 additions & 0 deletions pkgs/development/python-modules/tavily-python/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
wheel,
httpx,
requests,
tiktoken,
}:

buildPythonPackage rec {
pname = "tavily-python";
version = "0.4.0";
pyproject = true;

src = fetchPypi {
pname = "tavily_python";
inherit version;
hash = "sha256-5FFwQd0TXxcYWNfmWnyuCFWXhxu9waE9J5kKy1NuVcM=";
};

build-system = [
setuptools
wheel
];

dependencies = [
httpx
requests
tiktoken
];

pythonImportsCheck = [
"tavily"
];

meta = {
description = "Python wrapper for the Tavily API";
homepage = "https://pypi.org/project/tavily-python";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ happysalada ];
};
}
8 changes: 8 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -810,6 +810,8 @@ self: super: with self; {

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

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

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

asana = callPackage ../development/python-modules/asana { };
Expand Down Expand Up @@ -5755,6 +5757,8 @@ self: super: with self; {

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

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

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

htmlmin = callPackage ../development/python-modules/htmlmin { };
Expand Down Expand Up @@ -9776,6 +9780,8 @@ self: super: with self; {

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

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

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

persim = callPackage ../development/python-modules/persim { };
Expand Down Expand Up @@ -15184,6 +15190,8 @@ self: super: with self; {

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

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

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

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