diff --git a/pkgs/development/python-modules/clarifai-grpc/default.nix b/pkgs/development/python-modules/clarifai-grpc/default.nix index e6bff88f43210..4aa60582bfc49 100644 --- a/pkgs/development/python-modules/clarifai-grpc/default.nix +++ b/pkgs/development/python-modules/clarifai-grpc/default.nix @@ -1,7 +1,8 @@ { lib , buildPythonPackage -, fetchPypi +, fetchFromGitHub , pythonOlder +, setuptools , googleapis-common-protos , grpcio , protobuf @@ -10,16 +11,22 @@ buildPythonPackage rec { pname = "clarifai-grpc"; - version = "9.10.0"; - format = "setuptools"; + version = "9.10.5"; + pyproject = true; disabled = pythonOlder "3.8"; - src = fetchPypi { - inherit pname version; - hash = "sha256-8jx2OP1VcQtGmen58r1k/w7srjSJC/53sNxFrRm7IXs="; + src = fetchFromGitHub { + owner = "Clarifai"; + repo = "clarifai-python-grpc"; + rev = "refs/tags/${version}"; + hash = "sha256-lTvxafPdWET0p6dRnaTiOd8oPOjcRFZ45AtXkObNSBQ="; }; + nativeBuildInputs = [ + setuptools + ]; + propagatedBuildInputs = [ googleapis-common-protos grpcio