1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 httpx, 7 packaging, 8 pydantic, 9 typing-extensions, 10 pytestCheckHook, 11 pytest-asyncio, 12 pytest-recording, 13 respx, 14}: 15 16buildPythonPackage rec { 17 pname = "replicate"; 18 version = "1.1.0b3"; 19 pyproject = true; 20 21 src = fetchFromGitHub { 22 owner = "replicate"; 23 repo = "replicate-python"; 24 tag = version; 25 hash = "sha256-wafxaMQhusTr4wYnkrpfXr6FE2rbi6BVq42VSTXdEoc="; 26 }; 27 28 build-system = [ setuptools ]; 29 30 dependencies = [ 31 httpx 32 packaging 33 pydantic 34 typing-extensions 35 ]; 36 37 pythonImportsCheck = [ "replicate" ]; 38 39 nativeCheckInputs = [ 40 pytestCheckHook 41 pytest-asyncio 42 pytest-recording 43 respx 44 ]; 45 46 meta = { 47 description = "Python client for Replicate"; 48 homepage = "https://replicate.com/"; 49 changelog = "https://github.com/replicate/replicate-python/releases/tag/${src.tag}"; 50 license = lib.licenses.asl20; 51 maintainers = with lib.maintainers; [ jokatzke ]; 52 }; 53}