Fabian Affolter
2024-01-20 09:08:30 +01:00
parent 5720827f8e
commit 75e293d679
@@ -1,28 +1,30 @@
{ lib
, buildPythonPackage
, distro
, fetchPypi
, fetchFromGitHub
, pyasyncore
, pysnmp
, pytestCheckHook
, python-gnupg
, pythonAtLeast
, pythonOlder
, qrcode
, requests
, setuptools
, sseclient-py
, zfec
}:
buildPythonPackage rec {
pname = "blocksat-cli";
version = "0.4.6";
version = "2.4.6";
pyproject = true;
disabled = pythonOlder "3.7";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-uANAMNoAC4HUoUuR5ldxoiy+LLzZVpKosU5JttXLnqg=";
src = fetchFromGitHub {
owner = "Blockstream";
repo = "satellite";
rev = "refs/tags/v${version}";
hash = "sha256-1gz2lAS/AHeY54AaVXGeofLC68KjAP7POsIaBL3v2EY=";
};
nativeBuildInputs = [
@@ -35,24 +37,14 @@ buildPythonPackage rec {
python-gnupg
qrcode
requests
sseclient-py
zfec
] ++ lib.optionals (pythonAtLeast "3.12") [
pyasyncore
];
nativeCheckInputs = [
pytestCheckHook
];
disabledTestPaths = [
# disable tests which require being connected to the satellite
"blocksatcli/test_satip.py"
"blocksatcli/api/test_listen.py"
"blocksatcli/api/test_msg.py"
"blocksatcli/api/test_net.py"
# disable tests which require being online
"blocksatcli/api/test_order.py"
];
disabledTests = [
"test_monitor_get_stats"
"test_monitor_update_with_reporting_enabled"