depot/third_party/nixpkgs/pkgs/development/python-modules/blocksat-cli/default.nix
Default email 14910f5943 Project import generated by Copybara.
GitOrigin-RevId: 5aaed40d22f0d9376330b6fa413223435ad6fee5
2022-01-13 15:06:32 -05:00

53 lines
1 KiB
Nix

{ buildPythonPackage
, fetchPypi
, lib
, distro
, pysnmp
, python-gnupg
, qrcode
, requests
, sseclient-py
, zfec
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "blocksat-cli";
version = "0.4.2";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-hz5BGE+gqOrPiXvmeOTOecm2RUrTvM/xxvV3cnO2QSc=";
};
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 ];
};
}