1{ 2 lib, 3 buildPythonPackage, 4 esprima, 5 fetchFromGitHub, 6 pytestCheckHook, 7 pythonOlder, 8 requests, 9 requests-mock, 10 urllib3, 11}: 12 13buildPythonPackage rec { 14 pname = "quantum-gateway"; 15 version = "0.0.8"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "cisasteelersfan"; 22 repo = "quantum_gateway"; 23 rev = version; 24 hash = "sha256-jwLfth+UaisPR0p+UHfm6qMXT2eSYWnsYEp0BqyeI9U="; 25 }; 26 27 propagatedBuildInputs = [ 28 urllib3 29 esprima 30 requests 31 ]; 32 33 nativeCheckInputs = [ 34 requests-mock 35 pytestCheckHook 36 ]; 37 38 pythonImportsCheck = [ "quantum_gateway" ]; 39 40 disabledTests = [ 41 # Tests require network features 42 "TestGateway3100" 43 ]; 44 45 meta = with lib; { 46 description = "Python library for interacting with Verizon Fios Quantum gateway devices"; 47 homepage = "https://github.com/cisasteelersfan/quantum_gateway"; 48 license = with licenses; [ mit ]; 49 maintainers = with maintainers; [ fab ]; 50 }; 51}