3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/blocksat-cli/default.nix
2021-09-12 12:27:16 +00:00

50 lines
979 B
Nix

{ buildPythonPackage
, fetchPypi
, lib
, distro
, pysnmp
, python-gnupg
, qrcode
, requests
, sseclient-py
, zfec
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "blocksat-cli";
version = "0.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-g/V1//Jo8wnoOHEotF2ElVm+vzTIwZ6EzssJg6WJw6g=";
};
propagatedBuildInputs = [
distro
pysnmp
python-gnupg
qrcode
requests
sseclient-py
zfec
];
checkInputs = [ pytestCheckHook ];
pytestFlagsArray = [
# disable tests which require being connected to the satellite
"--ignore=blocksatcli/test_satip.py"
"--ignore=blocksatcli/api/test_net.py"
# disable tests which require being online
"--ignore=blocksatcli/api/test_order.py"
];
meta = with lib; {
description = "Blockstream Satellite CLI";
homepage = "https://github.com/Blockstream/satellite";
license = licenses.gpl3Only;
maintainers = with maintainers; [ prusnak ];
};
}