From 9ffff041562b5ef30c55b89b6863043204d7bd4b Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Sat, 17 Jul 2021 14:30:36 +0200 Subject: [PATCH] blocksat-cli: init at 0.3.2 --- .../python-modules/blocksat-cli/default.nix | 49 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + pkgs/top-level/python-packages.nix | 2 + 3 files changed, 53 insertions(+) create mode 100644 pkgs/development/python-modules/blocksat-cli/default.nix diff --git a/pkgs/development/python-modules/blocksat-cli/default.nix b/pkgs/development/python-modules/blocksat-cli/default.nix new file mode 100644 index 000000000000..1445c2046fb0 --- /dev/null +++ b/pkgs/development/python-modules/blocksat-cli/default.nix @@ -0,0 +1,49 @@ +{ buildPythonPackage +, fetchPypi +, lib +, distro +, pysnmp +, python-gnupg +, qrcode +, requests +, sseclient-py +, zfec +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "blocksat-cli"; + version = "0.3.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "06ky5kahh8dm1d7ckid3fdwizvkh3g4aycm39r00kwxdlfca7bgf"; + }; + + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 999eac9d3862..8834dcec3d5e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1333,6 +1333,8 @@ in blockbench-electron = callPackage ../applications/graphics/blockbench-electron { }; + blocksat-cli = with python3Packages; toPythonApplication blocksat-cli; + bmap-tools = callPackage ../tools/misc/bmap-tools { }; bonnmotion = callPackage ../development/tools/misc/bonnmotion { }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1c6873dbad8b..22ce89cf1c56 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1141,6 +1141,8 @@ in { block-io = callPackage ../development/python-modules/block-io { }; + blocksat-cli = callPackage ../development/python-modules/blocksat-cli { }; + blspy = callPackage ../development/python-modules/blspy { }; bluepy = callPackage ../development/python-modules/bluepy { };