2021-07-17 21:14:59 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, lib
|
|
|
|
, distro
|
|
|
|
, pysnmp
|
|
|
|
, python-gnupg
|
|
|
|
, qrcode
|
|
|
|
, requests
|
|
|
|
, sseclient-py
|
|
|
|
, zfec
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "blocksat-cli";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "0.4.4";
|
2021-07-17 21:14:59 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-06-16 17:23:12 +00:00
|
|
|
sha256 = "sha256-btwL8l5UdE9FwWXfuf1OHa8EwXDoFrh8tvOwr1yhyRg=";
|
2021-07-17 21:14:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
distro
|
|
|
|
pysnmp
|
|
|
|
python-gnupg
|
|
|
|
qrcode
|
|
|
|
requests
|
|
|
|
sseclient-py
|
|
|
|
zfec
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
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
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [ "blocksatcli" ];
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|