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