Merge pull request #48596 from makefu/pkgs/pythonPackages.speedtest-cli/init
speedtest-cli: move to pythonPackages, add to home-assistant
This commit is contained in:
commit
c1a0e28ee2
26
pkgs/development/python-modules/speedtest-cli/default.nix
Normal file
26
pkgs/development/python-modules/speedtest-cli/default.nix
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
}:
|
||||||
|
|
||||||
|
# cannot be built as pythonApplication because the library functions are
|
||||||
|
# required for home-assistant
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "speedtest-cli";
|
||||||
|
version = "2.0.2";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "2f3d5aa1086d9b367c03b99db6e3207525af174772d877c6b982289b8d2bdefe";
|
||||||
|
};
|
||||||
|
|
||||||
|
# tests require working internet connection
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Command line interface for testing internet bandwidth using speedtest.net";
|
||||||
|
homepage = https://github.com/sivel/speedtest-cli;
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ makefu domenkozar ndowens ];
|
||||||
|
};
|
||||||
|
}
|
@ -998,7 +998,7 @@
|
|||||||
"sensor.sochain" = ps: with ps; [ ];
|
"sensor.sochain" = ps: with ps; [ ];
|
||||||
"sensor.socialblade" = ps: with ps; [ ];
|
"sensor.socialblade" = ps: with ps; [ ];
|
||||||
"sensor.sonarr" = ps: with ps; [ ];
|
"sensor.sonarr" = ps: with ps; [ ];
|
||||||
"sensor.speedtest" = ps: with ps; [ ];
|
"sensor.speedtest" = ps: with ps; [ speedtest-cli ];
|
||||||
"sensor.spotcrime" = ps: with ps; [ ];
|
"sensor.spotcrime" = ps: with ps; [ ];
|
||||||
"sensor.sql" = ps: with ps; [ sqlalchemy ];
|
"sensor.sql" = ps: with ps; [ sqlalchemy ];
|
||||||
"sensor.startca" = ps: with ps; [ xmltodict ];
|
"sensor.startca" = ps: with ps; [ xmltodict ];
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
{ stdenv, fetchFromGitHub, python3Packages }:
|
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
|
||||||
name = "speedtest-cli-${version}";
|
|
||||||
version = "2.0.2";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "sivel";
|
|
||||||
repo = "speedtest-cli";
|
|
||||||
rev = "v${version}";
|
|
||||||
sha256 = "0vv2z37g2kgm2dzkfa4bhri92hs0d1acxi8z66gznsl5148q7sdi";
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
homepage = https://github.com/sivel/speedtest-cli;
|
|
||||||
description = "Command line interface for testing internet bandwidth using speedtest.net";
|
|
||||||
platforms = platforms.all;
|
|
||||||
license = licenses.asl20;
|
|
||||||
maintainers = with maintainers; [ domenkozar ndowens ];
|
|
||||||
};
|
|
||||||
}
|
|
@ -8851,7 +8851,7 @@ with pkgs;
|
|||||||
|
|
||||||
sparse = callPackage ../development/tools/analysis/sparse { };
|
sparse = callPackage ../development/tools/analysis/sparse { };
|
||||||
|
|
||||||
speedtest-cli = callPackage ../tools/networking/speedtest-cli { };
|
speedtest-cli = with python3Packages; toPythonApplication speedtest-cli;
|
||||||
|
|
||||||
spin = callPackage ../development/tools/analysis/spin { };
|
spin = callPackage ../development/tools/analysis/spin { };
|
||||||
|
|
||||||
|
@ -15029,6 +15029,8 @@ EOF
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
speedtest-cli = callPackage ../development/python-modules/speedtest-cli { };
|
||||||
|
|
||||||
pushbullet = callPackage ../development/python-modules/pushbullet { };
|
pushbullet = callPackage ../development/python-modules/pushbullet { };
|
||||||
|
|
||||||
power = buildPythonPackage rec {
|
power = buildPythonPackage rec {
|
||||||
|
Loading…
Reference in New Issue
Block a user