depot/third_party/nixpkgs/pkgs/development/python-modules/blocksat-cli/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

63 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
distro,
fetchFromGitHub,
pyasyncore,
pysnmp,
pysnmplib,
pytestCheckHook,
python-gnupg,
pythonAtLeast,
pythonOlder,
qrcode,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "blocksat-cli";
version = "2.4.7";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "Blockstream";
repo = "satellite";
rev = "refs/tags/v${version}";
hash = "sha256-OmIQUrUH3kWgf+v+9Hl2OgDdGPwb3guNY0+H64CWkeg=";
};
pythonRelaxDeps = [ "pyasyncore" ];
build-system = [ setuptools ];
dependencies = [
distro
pysnmp
pysnmplib
python-gnupg
qrcode
requests
] ++ lib.optionals (pythonAtLeast "3.12") [ pyasyncore ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
"test_monitor_get_stats"
"test_monitor_update_with_reporting_enabled"
"test_erasure_recovery"
];
pythonImportsCheck = [ "blocksatcli" ];
meta = with lib; {
description = "Blockstream Satellite CLI";
homepage = "https://github.com/Blockstream/satellite";
changelog = "https://github.com/Blockstream/satellite/releases/tag/v${version}";
license = licenses.gpl3Only;
maintainers = with maintainers; [ prusnak ];
mainProgram = "blocksat-cli";
};
}