2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
distro,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pyasyncore,
|
|
|
|
pysnmp,
|
|
|
|
pytestCheckHook,
|
|
|
|
python-gnupg,
|
|
|
|
pythonAtLeast,
|
|
|
|
pythonOlder,
|
|
|
|
qrcode,
|
|
|
|
requests,
|
|
|
|
setuptools,
|
2021-07-17 21:14:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "blocksat-cli";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "2.4.6";
|
|
|
|
pyproject = true;
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2021-07-17 21:14:59 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Blockstream";
|
|
|
|
repo = "satellite";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-1gz2lAS/AHeY54AaVXGeofLC68KjAP7POsIaBL3v2EY=";
|
2021-07-17 21:14:59 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-01-25 14:12:00 +00:00
|
|
|
|
2021-07-17 21:14:59 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
distro
|
|
|
|
pysnmp
|
|
|
|
python-gnupg
|
|
|
|
qrcode
|
|
|
|
requests
|
2024-06-05 15:53:02 +00:00
|
|
|
] ++ lib.optionals (pythonAtLeast "3.12") [ pyasyncore ];
|
2021-07-17 21:14:59 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
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"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "blocksat-cli";
|
2021-07-17 21:14:59 +00:00
|
|
|
homepage = "https://github.com/Blockstream/satellite";
|
2024-01-25 14:12:00 +00:00
|
|
|
changelog = "https://github.com/Blockstream/satellite/releases/tag/v${version}";
|
2021-07-17 21:14:59 +00:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ prusnak ];
|
|
|
|
};
|
|
|
|
}
|