1{ buildPythonPackage 2, fetchPypi 3, lib 4, distro 5, pysnmp 6, python-gnupg 7, qrcode 8, requests 9, sseclient-py 10, zfec 11, pytestCheckHook 12}: 13 14buildPythonPackage rec { 15 pname = "blocksat-cli"; 16 version = "0.4.4"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "sha256-btwL8l5UdE9FwWXfuf1OHa8EwXDoFrh8tvOwr1yhyRg="; 21 }; 22 23 propagatedBuildInputs = [ 24 distro 25 pysnmp 26 python-gnupg 27 qrcode 28 requests 29 sseclient-py 30 zfec 31 ]; 32 33 checkInputs = [ pytestCheckHook ]; 34 35 disabledTestPaths = [ 36 # disable tests which require being connected to the satellite 37 "blocksatcli/test_satip.py" 38 "blocksatcli/api/test_listen.py" 39 "blocksatcli/api/test_msg.py" 40 "blocksatcli/api/test_net.py" 41 # disable tests which require being online 42 "blocksatcli/api/test_order.py" 43 ]; 44 45 pythonImportsCheck = [ "blocksatcli" ]; 46 47 meta = with lib; { 48 description = "Blockstream Satellite CLI"; 49 homepage = "https://github.com/Blockstream/satellite"; 50 license = licenses.gpl3Only; 51 maintainers = with maintainers; [ prusnak ]; 52 }; 53}