generated from nix-community/nur-packages-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
speedtest-cli.nix
40 lines (34 loc) · 990 Bytes
/
speedtest-cli.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, wheel
}:
# cannot be built as pythonApplication because the library functions are
# required for home-assistant
buildPythonPackage rec {
pname = "speedtest-cli";
version = "2.1.4";
pyproject = true;
# https://github.com/sivel/speedtest-cli/pull/800
# Set secure connection as default
# fix: ERROR: HTTP Error 403: Forbidden
src = fetchFromGitHub {
owner = "sivel";
repo = "speedtest-cli";
rev = "74d662e1e00de05779c71717626bb7ec299bdf3c";
hash = "sha256-wv9TI8AFjHKkcav4InM7DG+PJfN25tMgLkmu+pw9lO0=";
};
nativeBuildInputs = [
setuptools
wheel
];
# 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 ];
};
}