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
|
{
lib,
arrow,
buildPythonPackage,
fetchFromGitHub,
pytest-cov-stub,
pytest-datafiles,
pytest-vcr,
pytestCheckHook,
python-box,
pythonOlder,
requests,
responses,
setuptools,
typing-extensions,
}:
buildPythonPackage rec {
pname = "restfly";
version = "1.5.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "stevemcgrath";
repo = "restfly";
rev = "refs/tags/${version}";
hash = "sha256-Zdn/hUvAZ9TaAWyDpNiEiA9mYDbWmiXBUa+IV/g8n2M=";
};
build-system = [ setuptools ];
dependencies = [
arrow
python-box
requests
typing-extensions
];
nativeCheckInputs = [
pytest-cov-stub
pytest-datafiles
pytest-vcr
pytestCheckHook
responses
];
disabledTests = [
# Test requires network access
"test_session_ssl_error"
];
pythonImportsCheck = [ "restfly" ];
meta = with lib; {
description = "Python RESTfly API Library Framework";
homepage = "https://github.com/stevemcgrath/restfly";
changelog = "https://github.com/librestfly/restfly/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
|