1{
2 lib,
3 arrow,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pytest-cov-stub,
7 pytest-datafiles,
8 pytest-vcr,
9 pytestCheckHook,
10 python-box,
11 pythonOlder,
12 requests,
13 responses,
14 setuptools,
15 typing-extensions,
16}:
17
18buildPythonPackage rec {
19 pname = "restfly";
20 version = "1.5.1";
21 pyproject = true;
22
23 disabled = pythonOlder "3.7";
24
25 src = fetchFromGitHub {
26 owner = "stevemcgrath";
27 repo = "restfly";
28 tag = version;
29 hash = "sha256-hHNsOFu2b4sb9zbdWVTwoU1HShLFqC+Q9/PJcEqu7Hg=";
30 };
31
32 build-system = [ setuptools ];
33
34 dependencies = [
35 arrow
36 python-box
37 requests
38 typing-extensions
39 ];
40
41 nativeCheckInputs = [
42 pytest-cov-stub
43 pytest-datafiles
44 pytest-vcr
45 pytestCheckHook
46 responses
47 ];
48
49 disabledTests = [
50 # Test requires network access
51 "test_session_ssl_error"
52 ];
53
54 pythonImportsCheck = [ "restfly" ];
55
56 meta = with lib; {
57 description = "Python RESTfly API Library Framework";
58 homepage = "https://github.com/stevemcgrath/restfly";
59 changelog = "https://github.com/librestfly/restfly/blob/${version}/CHANGELOG.md";
60 license = licenses.mit;
61 maintainers = with maintainers; [ fab ];
62 };
63}