Merge pull request #232039 from natsukium/python3Packages.wikipedia/init
python3Packages.wikipedia: init at 1.4.0; python3Packages.langchain: enable wikipedia
This commit is contained in:
commit
bf13d993e7
3 changed files with 43 additions and 1 deletions
|
@ -36,6 +36,7 @@
|
|||
, faiss
|
||||
, spacy
|
||||
, nltk
|
||||
, wikipedia
|
||||
, beautifulsoup4
|
||||
, tiktoken
|
||||
, jinja2
|
||||
|
@ -177,7 +178,7 @@ buildPythonPackage rec {
|
|||
transformers
|
||||
spacy
|
||||
nltk
|
||||
# wikipedia
|
||||
wikipedia
|
||||
beautifulsoup4
|
||||
tiktoken
|
||||
torch
|
||||
|
|
39
pkgs/development/python-modules/wikipedia/default.nix
Normal file
39
pkgs/development/python-modules/wikipedia/default.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, beautifulsoup4
|
||||
, requests
|
||||
, unittestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "wikipedia";
|
||||
version = "1.4.0";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-2w+tGCn91EGxhSMG6YVjmCBNwHhtKZbdLgyLuOJhM7I=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
beautifulsoup4
|
||||
requests
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
unittestCheckHook
|
||||
];
|
||||
|
||||
unittestFlagsArray = [
|
||||
"tests/ '*test.py'"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Pythonic wrapper for the Wikipedia API";
|
||||
homepage = "https://github.com/goldsmith/Wikipedia";
|
||||
changelog = "https://github.com/goldsmith/Wikipedia/blob/master/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ natsukium ];
|
||||
};
|
||||
}
|
|
@ -13215,6 +13215,8 @@ self: super: with self; {
|
|||
|
||||
wifi = callPackage ../development/python-modules/wifi { };
|
||||
|
||||
wikipedia = callPackage ../development/python-modules/wikipedia { };
|
||||
|
||||
willow = callPackage ../development/python-modules/willow { };
|
||||
|
||||
winacl = callPackage ../development/python-modules/winacl { };
|
||||
|
|
Loading…
Reference in a new issue