472aeafc57
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
53 lines
997 B
Nix
53 lines
997 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
httpx,
|
|
packaging,
|
|
pydantic,
|
|
typing-extensions,
|
|
pytestCheckHook,
|
|
pytest-asyncio,
|
|
pytest-recording,
|
|
respx,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "replicate";
|
|
version = "0.34.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "replicate";
|
|
repo = "replicate-python";
|
|
rev = version;
|
|
hash = "sha256-DhmuGh0OASd4rBvizf1qx537j4RGs4eVe0jH1BrhZa4=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
httpx
|
|
packaging
|
|
pydantic
|
|
typing-extensions
|
|
];
|
|
|
|
pythonImportsCheck = [ "replicate" ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-asyncio
|
|
pytest-recording
|
|
respx
|
|
];
|
|
|
|
meta = {
|
|
description = "Python client for Replicate";
|
|
homepage = "https://replicate.com/";
|
|
changelog = "https://github.com/replicate/replicate-python/releases/tag/${version}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ jokatzke ];
|
|
};
|
|
}
|