2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-07-17 21:14:59 +00:00
|
|
|
, fetchPypi
|
|
|
|
, distro
|
|
|
|
, pysnmp
|
|
|
|
, python-gnupg
|
|
|
|
, qrcode
|
|
|
|
, requests
|
|
|
|
, sseclient-py
|
|
|
|
, zfec
|
|
|
|
, pytestCheckHook
|
2023-05-24 13:37:59 +00:00
|
|
|
, pythonOlder
|
2021-07-17 21:14:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "blocksat-cli";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.4.6";
|
2023-05-24 13:37:59 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-07-17 21:14:59 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-uANAMNoAC4HUoUuR5ldxoiy+LLzZVpKosU5JttXLnqg=";
|
2021-07-17 21:14:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
distro
|
|
|
|
pysnmp
|
|
|
|
python-gnupg
|
|
|
|
qrcode
|
|
|
|
requests
|
|
|
|
sseclient-py
|
|
|
|
zfec
|
|
|
|
];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-07-17 21:14:59 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
disabledTestPaths = [
|
2021-07-17 21:14:59 +00:00
|
|
|
# disable tests which require being connected to the satellite
|
2021-12-06 16:07:01 +00:00
|
|
|
"blocksatcli/test_satip.py"
|
|
|
|
"blocksatcli/api/test_listen.py"
|
|
|
|
"blocksatcli/api/test_msg.py"
|
|
|
|
"blocksatcli/api/test_net.py"
|
2021-07-17 21:14:59 +00:00
|
|
|
# disable tests which require being online
|
2021-12-06 16:07:01 +00:00
|
|
|
"blocksatcli/api/test_order.py"
|
2021-07-17 21:14:59 +00:00
|
|
|
];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_monitor_get_stats"
|
|
|
|
"test_monitor_update_with_reporting_enabled"
|
|
|
|
"test_erasure_recovery"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"blocksatcli"
|
|
|
|
];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2021-07-17 21:14:59 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Blockstream Satellite CLI";
|
|
|
|
homepage = "https://github.com/Blockstream/satellite";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ prusnak ];
|
|
|
|
};
|
|
|
|
}
|