1{ lib 2, arrow 3, buildPythonPackage 4, fetchFromGitHub 5, pytest-datafiles 6, pytest-vcr 7, pytestCheckHook 8, python-box 9, pythonOlder 10, responses 11, requests 12}: 13 14buildPythonPackage rec { 15 pname = "restfly"; 16 version = "1.4.7"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitHub { 22 owner = "stevemcgrath"; 23 repo = pname; 24 rev = version; 25 hash = "sha256-PPXJHatJKve9fIjveVYRnTSIDHFmnSDWTnkgO91twJs="; 26 }; 27 28 propagatedBuildInputs = [ 29 requests 30 arrow 31 python-box 32 ]; 33 34 nativeCheckInputs = [ 35 pytest-datafiles 36 pytest-vcr 37 pytestCheckHook 38 responses 39 ]; 40 41 disabledTests = [ 42 # Test requires network access 43 "test_session_ssl_error" 44 ]; 45 46 pythonImportsCheck = [ 47 "restfly" 48 ]; 49 50 meta = with lib; { 51 description = "Python RESTfly API Library Framework"; 52 homepage = "https://github.com/stevemcgrath/restfly"; 53 license = with licenses; [ mit ]; 54 maintainers = with maintainers; [ fab ]; 55 }; 56}