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";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "0.4.1";
|
2021-07-17 21:14:59 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "96ec5e548dcdb71ada75727d76b34006fe5f6818bd89cf982e15616d41889603";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|