lol

Merge pull request #130454 from prusnak/blocksat-cli

blocksat-cli: init at 0.3.2

authored by

Ben Siraphob and committed by
GitHub
0ea3c6b0 ceaddd6e

+68 -11
+49
pkgs/development/python-modules/blocksat-cli/default.nix
··· 1 + { buildPythonPackage 2 + , fetchPypi 3 + , lib 4 + , distro 5 + , pysnmp 6 + , python-gnupg 7 + , qrcode 8 + , requests 9 + , sseclient-py 10 + , zfec 11 + , pytestCheckHook 12 + }: 13 + 14 + buildPythonPackage rec { 15 + pname = "blocksat-cli"; 16 + version = "0.3.2"; 17 + 18 + src = fetchPypi { 19 + inherit pname version; 20 + sha256 = "06ky5kahh8dm1d7ckid3fdwizvkh3g4aycm39r00kwxdlfca7bgf"; 21 + }; 22 + 23 + propagatedBuildInputs = [ 24 + distro 25 + pysnmp 26 + python-gnupg 27 + qrcode 28 + requests 29 + sseclient-py 30 + zfec 31 + ]; 32 + 33 + checkInputs = [ pytestCheckHook ]; 34 + 35 + pytestFlagsArray = [ 36 + # disable tests which require being connected to the satellite 37 + "--ignore=blocksatcli/test_satip.py" 38 + "--ignore=blocksatcli/api/test_net.py" 39 + # disable tests which require being online 40 + "--ignore=blocksatcli/api/test_order.py" 41 + ]; 42 + 43 + meta = with lib; { 44 + description = "Blockstream Satellite CLI"; 45 + homepage = "https://github.com/Blockstream/satellite"; 46 + license = licenses.gpl3Only; 47 + maintainers = with maintainers; [ prusnak ]; 48 + }; 49 + }
+5 -8
pkgs/development/python-modules/pyutil/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchPypi 4 - , setuptoolsDarcs 5 - , setuptoolsTrial 6 4 , simplejson 5 + , mock 7 6 , twisted 8 7 , isPyPy 9 8 }: ··· 17 16 sha256 = "8c4d4bf668c559186389bb9bce99e4b1b871c09ba252a756ccaacd2b8f401848"; 18 17 }; 19 18 20 - buildInputs = [ setuptoolsDarcs setuptoolsTrial ] ++ (if doCheck then [ simplejson ] else []); 21 - propagatedBuildInputs = [ twisted ]; 19 + propagatedBuildInputs = [ simplejson ]; 22 20 23 - # Tests fail because they try to write new code into the twisted 24 - # package, apparently some kind of plugin. 25 - doCheck = false; 21 + checkInputs = [ mock twisted ]; 26 22 27 23 prePatch = lib.optionalString isPyPy '' 28 24 grep -rl 'utf-8-with-signature-unix' ./ | xargs sed -i -e "s|utf-8-with-signature-unix|utf-8|g" ··· 41 37 we're not alone in wanting tools like these. 42 38 ''; 43 39 44 - homepage = "http://allmydata.org/trac/pyutil"; 40 + homepage = "https://github.com/tpltnt/pyutil"; 45 41 license = licenses.gpl2Plus; 42 + maintainers = with maintainers; [ prusnak ]; 46 43 }; 47 44 48 45 }
+6 -3
pkgs/development/python-modules/zfec/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchPypi 4 - , setuptoolsDarcs 5 4 , pyutil 5 + , setuptoolsTrial 6 + , twisted 6 7 }: 7 8 8 9 buildPythonPackage rec { ··· 14 15 sha256 = "6033b2f3cc3edacf3f7eeed5f258c1ebf8a1d7e5e35b623db352512ce564e5ca"; 15 16 }; 16 17 17 - buildInputs = [ setuptoolsDarcs ]; 18 18 propagatedBuildInputs = [ pyutil ]; 19 19 20 + checkInputs = [ setuptoolsTrial twisted ]; 21 + 20 22 # argparse is in the stdlib but zfec doesn't know that. 21 23 postPatch = '' 22 24 sed -i -e '/argparse/d' setup.py 23 25 ''; 24 26 25 27 meta = with lib; { 26 - homepage = "http://allmydata.org/trac/zfec"; 28 + homepage = "https://github.com/tahoe-lafs/zfec"; 27 29 description = "Zfec, a fast erasure codec which can be used with the command-line, C, Python, or Haskell"; 28 30 longDescription = '' 29 31 Fast, portable, programmable erasure coding a.k.a. "forward ··· 34 36 and Haskell API. 35 37 ''; 36 38 license = licenses.gpl2Plus; 39 + maintainers = with maintainers; [ prusnak ]; 37 40 }; 38 41 39 42 }
+2
pkgs/top-level/all-packages.nix
··· 1333 1333 1334 1334 blockbench-electron = callPackage ../applications/graphics/blockbench-electron { }; 1335 1335 1336 + blocksat-cli = with python3Packages; toPythonApplication blocksat-cli; 1337 + 1336 1338 bmap-tools = callPackage ../tools/misc/bmap-tools { }; 1337 1339 1338 1340 bonnmotion = callPackage ../development/tools/misc/bonnmotion { };
+6
pkgs/top-level/python-packages.nix
··· 1141 1141 1142 1142 block-io = callPackage ../development/python-modules/block-io { }; 1143 1143 1144 + blocksat-cli = callPackage ../development/python-modules/blocksat-cli { }; 1145 + 1144 1146 blspy = callPackage ../development/python-modules/blspy { }; 1145 1147 1146 1148 bluepy = callPackage ../development/python-modules/bluepy { }; ··· 5413 5415 5414 5416 python-tado = callPackage ../development/python-modules/python-tado { }; 5415 5417 5418 + pyutil = callPackage ../development/python-modules/pyutil { }; 5419 + 5416 5420 pkutils = callPackage ../development/python-modules/pkutils { }; 5417 5421 5418 5422 plac = callPackage ../development/python-modules/plac { }; ··· 9473 9477 zerorpc = callPackage ../development/python-modules/zerorpc { }; 9474 9478 9475 9479 zetup = callPackage ../development/python-modules/zetup { }; 9480 + 9481 + zfec = callPackage ../development/python-modules/zfec { }; 9476 9482 9477 9483 zha-quirks = callPackage ../development/python-modules/zha-quirks { }; 9478 9484