From 67609c59f5f07c8b0579f37000fa9111ebb8ea5b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 14 May 2023 09:33:16 +0200 Subject: [PATCH] python311Packages.weaviate-client: fix versioning --- .../development/python-modules/weaviate-client/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/weaviate-client/default.nix b/pkgs/development/python-modules/weaviate-client/default.nix index 5d69d2a29b3f..50cca6436cb4 100644 --- a/pkgs/development/python-modules/weaviate-client/default.nix +++ b/pkgs/development/python-modules/weaviate-client/default.nix @@ -3,6 +3,7 @@ , buildPythonPackage , fetchPypi , pythonOlder +, setuptools-scm , tqdm , validators }: @@ -19,12 +20,18 @@ buildPythonPackage rec { 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" \ --replace "requests>=2.28.0,<2.29.0" "requests>=2.28.0" ''; + nativeBuildInputs = [ + setuptools-scm + ]; + propagatedBuildInputs = [ authlib tqdm