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