depot/third_party/nixpkgs/pkgs/development/python-modules/weaviate-client/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

52 lines
1.1 KiB
Nix

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