2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, authlib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, setuptools-scm
|
|
|
|
, tqdm
|
|
|
|
, validators
|
|
|
|
}:
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "weaviate-client";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "3.26.0";
|
2023-05-24 13:37:59 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-7oCb8tH1pQDJpoxe3C6xdKtRQqNoAuJ0qySv5nX/sos=";
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
2023-08-10 07:59:29 +00:00
|
|
|
--replace "validators>=0.18.2,<=0.21.0" "validators>=0.18.2" \
|
2023-05-24 13:37:59 +00:00
|
|
|
--replace "requests>=2.28.0,<2.29.0" "requests>=2.28.0"
|
2023-04-12 12:48:02 +00:00
|
|
|
'';
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
authlib
|
|
|
|
tqdm
|
|
|
|
validators
|
|
|
|
];
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"weaviate"
|
|
|
|
];
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
meta = with lib; {
|
2023-05-24 13:37:59 +00:00
|
|
|
description = "Python native client for easy interaction with a Weaviate instance";
|
2023-04-12 12:48:02 +00:00
|
|
|
homepage = "https://github.com/weaviate/weaviate-python-client";
|
2023-05-24 13:37:59 +00:00
|
|
|
changelog = "https://github.com/weaviate/weaviate-python-client/releases/tag/v${version}";
|
2023-04-12 12:48:02 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ happysalada ];
|
|
|
|
};
|
|
|
|
}
|