Merge pull request #130454 from prusnak/blocksat-cli

blocksat-cli: init at 0.3.2
This commit is contained in:
Ben Siraphob 2021-07-18 02:18:06 +07:00 committed by GitHub
commit 0ea3c6b06f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 68 additions and 11 deletions

View file

@ -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 ];
};
}

View file

@ -1,9 +1,8 @@
{ lib
, buildPythonPackage
, fetchPypi
, setuptoolsDarcs
, setuptoolsTrial
, simplejson
, mock
, twisted
, isPyPy
}:
@ -17,12 +16,9 @@ buildPythonPackage rec {
sha256 = "8c4d4bf668c559186389bb9bce99e4b1b871c09ba252a756ccaacd2b8f401848";
};
buildInputs = [ setuptoolsDarcs setuptoolsTrial ] ++ (if doCheck then [ simplejson ] else []);
propagatedBuildInputs = [ twisted ];
propagatedBuildInputs = [ simplejson ];
# Tests fail because they try to write new code into the twisted
# package, apparently some kind of plugin.
doCheck = false;
checkInputs = [ mock twisted ];
prePatch = lib.optionalString isPyPy ''
grep -rl 'utf-8-with-signature-unix' ./ | xargs sed -i -e "s|utf-8-with-signature-unix|utf-8|g"
@ -41,8 +37,9 @@ buildPythonPackage rec {
we're not alone in wanting tools like these.
'';
homepage = "http://allmydata.org/trac/pyutil";
homepage = "https://github.com/tpltnt/pyutil";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ prusnak ];
};
}

View file

@ -1,8 +1,9 @@
{ lib
, buildPythonPackage
, fetchPypi
, setuptoolsDarcs
, pyutil
, setuptoolsTrial
, twisted
}:
buildPythonPackage rec {
@ -14,16 +15,17 @@ buildPythonPackage rec {
sha256 = "6033b2f3cc3edacf3f7eeed5f258c1ebf8a1d7e5e35b623db352512ce564e5ca";
};
buildInputs = [ setuptoolsDarcs ];
propagatedBuildInputs = [ pyutil ];
checkInputs = [ setuptoolsTrial twisted ];
# argparse is in the stdlib but zfec doesn't know that.
postPatch = ''
sed -i -e '/argparse/d' setup.py
'';
meta = with lib; {
homepage = "http://allmydata.org/trac/zfec";
homepage = "https://github.com/tahoe-lafs/zfec";
description = "Zfec, a fast erasure codec which can be used with the command-line, C, Python, or Haskell";
longDescription = ''
Fast, portable, programmable erasure coding a.k.a. "forward
@ -34,6 +36,7 @@ buildPythonPackage rec {
and Haskell API.
'';
license = licenses.gpl2Plus;
maintainers = with maintainers; [ prusnak ];
};
}

View file

@ -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 { };

View file

@ -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 { };
@ -5413,6 +5415,8 @@ in {
python-tado = callPackage ../development/python-modules/python-tado { };
pyutil = callPackage ../development/python-modules/pyutil { };
pkutils = callPackage ../development/python-modules/pkutils { };
plac = callPackage ../development/python-modules/plac { };
@ -9474,6 +9478,8 @@ in {
zetup = callPackage ../development/python-modules/zetup { };
zfec = callPackage ../development/python-modules/zfec { };
zha-quirks = callPackage ../development/python-modules/zha-quirks { };
zict = callPackage ../development/python-modules/zict { };