1{ lib 2, buildPythonPackage 3, fetchPypi 4, distro 5, pysnmp 6, python-gnupg 7, qrcode 8, requests 9, sseclient-py 10, zfec 11, pytestCheckHook 12, pythonOlder 13}: 14 15buildPythonPackage rec { 16 pname = "blocksat-cli"; 17 version = "0.4.6"; 18 format = "setuptools"; 19 20 disabled = pythonOlder "3.7"; 21 22 src = fetchPypi { 23 inherit pname version; 24 hash = "sha256-uANAMNoAC4HUoUuR5ldxoiy+LLzZVpKosU5JttXLnqg="; 25 }; 26 27 propagatedBuildInputs = [ 28 distro 29 pysnmp 30 python-gnupg 31 qrcode 32 requests 33 sseclient-py 34 zfec 35 ]; 36 37 nativeCheckInputs = [ 38 pytestCheckHook 39 ]; 40 41 disabledTestPaths = [ 42 # disable tests which require being connected to the satellite 43 "blocksatcli/test_satip.py" 44 "blocksatcli/api/test_listen.py" 45 "blocksatcli/api/test_msg.py" 46 "blocksatcli/api/test_net.py" 47 # disable tests which require being online 48 "blocksatcli/api/test_order.py" 49 ]; 50 51 disabledTests = [ 52 "test_monitor_get_stats" 53 "test_monitor_update_with_reporting_enabled" 54 "test_erasure_recovery" 55 ]; 56 57 pythonImportsCheck = [ 58 "blocksatcli" 59 ]; 60 61 meta = with lib; { 62 description = "Blockstream Satellite CLI"; 63 homepage = "https://github.com/Blockstream/satellite"; 64 license = licenses.gpl3Only; 65 maintainers = with maintainers; [ prusnak ]; 66 }; 67}