1{ lib 2, buildPythonPackage 3, esprima 4, fetchFromGitHub 5, pytestCheckHook 6, pythonOlder 7, requests 8, requests-mock 9, setuptools-scm 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 checkInputs = [ 34 requests-mock 35 pytestCheckHook 36 ]; 37 38 pythonImportsCheck = [ 39 "quantum_gateway" 40 ]; 41 42 disabledTests = [ 43 # Tests require network features 44 "TestGateway3100" 45 ]; 46 47 meta = with lib; { 48 description = "Python library for interacting with Verizon Fios Quantum gateway devices"; 49 homepage = "https://github.com/cisasteelersfan/quantum_gateway"; 50 license = with licenses; [ mit ]; 51 maintainers = with maintainers; [ fab ]; 52 }; 53}