blob: ee7b4587c82c4a322c7c4e47e664b6e4742b30a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
httpx,
packaging,
pydantic,
typing-extensions,
pytestCheckHook,
pytest-asyncio,
pytest-recording,
respx,
}:
buildPythonPackage rec {
pname = "replicate";
version = "1.1.0b3";
pyproject = true;
src = fetchFromGitHub {
owner = "replicate";
repo = "replicate-python";
tag = version;
hash = "sha256-wafxaMQhusTr4wYnkrpfXr6FE2rbi6BVq42VSTXdEoc=";
};
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/${src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ jokatzke ];
};
}
|