Merge pull request #130454 from prusnak/blocksat-cli
blocksat-cli: init at 0.3.2
This commit is contained in:
commit
0ea3c6b06f
49
pkgs/development/python-modules/blocksat-cli/default.nix
Normal file
49
pkgs/development/python-modules/blocksat-cli/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -1,9 +1,8 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, setuptoolsDarcs
|
|
||||||
, setuptoolsTrial
|
|
||||||
, simplejson
|
, simplejson
|
||||||
|
, mock
|
||||||
, twisted
|
, twisted
|
||||||
, isPyPy
|
, isPyPy
|
||||||
}:
|
}:
|
||||||
@ -17,12 +16,9 @@ buildPythonPackage rec {
|
|||||||
sha256 = "8c4d4bf668c559186389bb9bce99e4b1b871c09ba252a756ccaacd2b8f401848";
|
sha256 = "8c4d4bf668c559186389bb9bce99e4b1b871c09ba252a756ccaacd2b8f401848";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ setuptoolsDarcs setuptoolsTrial ] ++ (if doCheck then [ simplejson ] else []);
|
propagatedBuildInputs = [ simplejson ];
|
||||||
propagatedBuildInputs = [ twisted ];
|
|
||||||
|
|
||||||
# Tests fail because they try to write new code into the twisted
|
checkInputs = [ mock twisted ];
|
||||||
# package, apparently some kind of plugin.
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
prePatch = lib.optionalString isPyPy ''
|
prePatch = lib.optionalString isPyPy ''
|
||||||
grep -rl 'utf-8-with-signature-unix' ./ | xargs sed -i -e "s|utf-8-with-signature-unix|utf-8|g"
|
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.
|
we're not alone in wanting tools like these.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
homepage = "http://allmydata.org/trac/pyutil";
|
homepage = "https://github.com/tpltnt/pyutil";
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
|
maintainers = with maintainers; [ prusnak ];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, setuptoolsDarcs
|
|
||||||
, pyutil
|
, pyutil
|
||||||
|
, setuptoolsTrial
|
||||||
|
, twisted
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -14,16 +15,17 @@ buildPythonPackage rec {
|
|||||||
sha256 = "6033b2f3cc3edacf3f7eeed5f258c1ebf8a1d7e5e35b623db352512ce564e5ca";
|
sha256 = "6033b2f3cc3edacf3f7eeed5f258c1ebf8a1d7e5e35b623db352512ce564e5ca";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ setuptoolsDarcs ];
|
|
||||||
propagatedBuildInputs = [ pyutil ];
|
propagatedBuildInputs = [ pyutil ];
|
||||||
|
|
||||||
|
checkInputs = [ setuptoolsTrial twisted ];
|
||||||
|
|
||||||
# argparse is in the stdlib but zfec doesn't know that.
|
# argparse is in the stdlib but zfec doesn't know that.
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i -e '/argparse/d' setup.py
|
sed -i -e '/argparse/d' setup.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
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";
|
description = "Zfec, a fast erasure codec which can be used with the command-line, C, Python, or Haskell";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
Fast, portable, programmable erasure coding a.k.a. "forward
|
Fast, portable, programmable erasure coding a.k.a. "forward
|
||||||
@ -34,6 +36,7 @@ buildPythonPackage rec {
|
|||||||
and Haskell API.
|
and Haskell API.
|
||||||
'';
|
'';
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
|
maintainers = with maintainers; [ prusnak ];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1333,6 +1333,8 @@ in
|
|||||||
|
|
||||||
blockbench-electron = callPackage ../applications/graphics/blockbench-electron { };
|
blockbench-electron = callPackage ../applications/graphics/blockbench-electron { };
|
||||||
|
|
||||||
|
blocksat-cli = with python3Packages; toPythonApplication blocksat-cli;
|
||||||
|
|
||||||
bmap-tools = callPackage ../tools/misc/bmap-tools { };
|
bmap-tools = callPackage ../tools/misc/bmap-tools { };
|
||||||
|
|
||||||
bonnmotion = callPackage ../development/tools/misc/bonnmotion { };
|
bonnmotion = callPackage ../development/tools/misc/bonnmotion { };
|
||||||
|
@ -1141,6 +1141,8 @@ in {
|
|||||||
|
|
||||||
block-io = callPackage ../development/python-modules/block-io { };
|
block-io = callPackage ../development/python-modules/block-io { };
|
||||||
|
|
||||||
|
blocksat-cli = callPackage ../development/python-modules/blocksat-cli { };
|
||||||
|
|
||||||
blspy = callPackage ../development/python-modules/blspy { };
|
blspy = callPackage ../development/python-modules/blspy { };
|
||||||
|
|
||||||
bluepy = callPackage ../development/python-modules/bluepy { };
|
bluepy = callPackage ../development/python-modules/bluepy { };
|
||||||
@ -5413,6 +5415,8 @@ in {
|
|||||||
|
|
||||||
python-tado = callPackage ../development/python-modules/python-tado { };
|
python-tado = callPackage ../development/python-modules/python-tado { };
|
||||||
|
|
||||||
|
pyutil = callPackage ../development/python-modules/pyutil { };
|
||||||
|
|
||||||
pkutils = callPackage ../development/python-modules/pkutils { };
|
pkutils = callPackage ../development/python-modules/pkutils { };
|
||||||
|
|
||||||
plac = callPackage ../development/python-modules/plac { };
|
plac = callPackage ../development/python-modules/plac { };
|
||||||
@ -9474,6 +9478,8 @@ in {
|
|||||||
|
|
||||||
zetup = callPackage ../development/python-modules/zetup { };
|
zetup = callPackage ../development/python-modules/zetup { };
|
||||||
|
|
||||||
|
zfec = callPackage ../development/python-modules/zfec { };
|
||||||
|
|
||||||
zha-quirks = callPackage ../development/python-modules/zha-quirks { };
|
zha-quirks = callPackage ../development/python-modules/zha-quirks { };
|
||||||
|
|
||||||
zict = callPackage ../development/python-modules/zict { };
|
zict = callPackage ../development/python-modules/zict { };
|
||||||
|
Loading…
Reference in New Issue
Block a user