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
54
55
56
57
58
59
60
61
62
63
64
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
requests,
six,
uritemplate,
pytestCheckHook,
pytest-mock,
aiohttp,
marshmallow,
pydantic,
pytest-asyncio,
pytest-twisted,
twisted,
pythonOlder,
}:
buildPythonPackage rec {
pname = "uplink";
version = "0.10.0";
pyproject = true;
src = fetchFromGitHub {
owner = "prkumar";
repo = "uplink";
tag = "v${version}";
hash = "sha256-gI7oHLyC6a5s3jhgG5jj+7q495seMSyUV4XVAp1URTA=";
};
build-system = [ hatchling ];
dependencies = [
requests
six
uritemplate
];
optional-dependencies = {
aiohttp = [ aiohttp ];
marshmallow = [ marshmallow ];
pydantic = [ pydantic ];
twisted = [ twisted ];
};
nativeCheckInputs = [
pytestCheckHook
pytest-mock
pytest-asyncio
pytest-twisted
]
++ lib.concatAttrValues optional-dependencies;
pythonImportsCheck = [ "uplink" ];
meta = {
description = "Declarative HTTP client for Python";
homepage = "https://github.com/prkumar/uplink";
changelog = "https://github.com/prkumar/uplink/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.jamiemagee ];
};
}
|