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";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "3.18.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-QjpSZRijJQXFKTMo5fJS5su/IOSzEkcz9w0Q/A1oI8k=";
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
2023-05-24 13:37:59 +00:00
|
|
|
--replace "validators>=0.18.2,<0.20.0" "validators>=0.18.2" \
|
|
|
|
--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 ];
|
|
|
|
};
|
|
|
|
}
|