2023-05-14 07:09:49 +00:00
|
|
|
{ lib
|
|
|
|
, authlib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2023-05-14 07:15:00 +00:00
|
|
|
, pythonOlder
|
2023-05-14 07:09:49 +00:00
|
|
|
, tqdm
|
|
|
|
, validators
|
|
|
|
}:
|
2023-03-30 22:54:30 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "weaviate-client";
|
2023-05-11 21:09:42 +00:00
|
|
|
version = "3.18.0";
|
2023-05-14 07:15:00 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2023-03-30 22:54:30 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-05-11 21:09:42 +00:00
|
|
|
hash = "sha256-QjpSZRijJQXFKTMo5fJS5su/IOSzEkcz9w0Q/A1oI8k=";
|
2023-03-30 22:54:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace "validators>=0.18.2,<0.20.0" "validators>=0.18.2,<0.21.0"
|
|
|
|
'';
|
|
|
|
|
2023-05-14 07:09:49 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
authlib
|
|
|
|
tqdm
|
|
|
|
validators
|
|
|
|
];
|
2023-03-30 22:54:30 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-05-14 07:13:27 +00:00
|
|
|
description = "Python native client for easy interaction with a Weaviate instance";
|
2023-03-30 22:54:30 +00:00
|
|
|
homepage = "https://github.com/weaviate/weaviate-python-client";
|
2023-05-14 07:13:27 +00:00
|
|
|
changelog = "https://github.com/weaviate/weaviate-python-client/releases/tag/v${version}";
|
2023-03-30 22:54:30 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ happysalada ];
|
|
|
|
};
|
|
|
|
}
|