depot/third_party/nixpkgs/pkgs/development/python-modules/blocksat-cli/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

53 lines
1.1 KiB
Nix

{ buildPythonPackage
, fetchPypi
, lib
, distro
, pysnmp
, python-gnupg
, qrcode
, requests
, sseclient-py
, zfec
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "blocksat-cli";
version = "0.4.1";
src = fetchPypi {
inherit pname version;
sha256 = "96ec5e548dcdb71ada75727d76b34006fe5f6818bd89cf982e15616d41889603";
};
propagatedBuildInputs = [
distro
pysnmp
python-gnupg
qrcode
requests
sseclient-py
zfec
];
checkInputs = [ 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"
];
pythonImportsCheck = [ "blocksatcli" ];
meta = with lib; {
description = "Blockstream Satellite CLI";
homepage = "https://github.com/Blockstream/satellite";
license = licenses.gpl3Only;
maintainers = with maintainers; [ prusnak ];
};
}