mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 04:49:01 +02:00
Merge pull request #231802 from fabaff/weaviate-client-fix
python311Packages.weaviate-client: relax requests constraint
This commit is contained in:
commit
40dd084f39
|
@ -1,26 +1,53 @@
|
|||
{ lib, buildPythonPackage, fetchPypi, authlib, tqdm, validators }:
|
||||
{ lib
|
||||
, authlib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, setuptools-scm
|
||||
, tqdm
|
||||
, validators
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "weaviate-client";
|
||||
version = "3.18.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-QjpSZRijJQXFKTMo5fJS5su/IOSzEkcz9w0Q/A1oI8k=";
|
||||
};
|
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "validators>=0.18.2,<0.20.0" "validators>=0.18.2,<0.21.0"
|
||||
--replace "validators>=0.18.2,<0.20.0" "validators>=0.18.2" \
|
||||
--replace "requests>=2.28.0,<2.29.0" "requests>=2.28.0"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ authlib tqdm validators ];
|
||||
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";
|
||||
description = "A python native client for easy interaction with a Weaviate instance.";
|
||||
changelog = "https://github.com/weaviate/weaviate-python-client/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ happysalada ];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue