1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 iperf3,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "iperf3";
11 version = "0.1.11";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "thiezn";
16 repo = "iperf3-python";
17 tag = "v${version}";
18 hash = "sha256-kcEgG9lkYUqFtTgrGZdEQ0AHsx3yQIMFOG4A7d4mAnE=";
19 };
20
21 build-system = [ setuptools ];
22
23 # Tests require iperf3 client and server setup
24 doCheck = false;
25
26 pythonImportsCheck = [ "iperf3" ];
27
28 meta = {
29 description = "Python wrapper around iperf3";
30 homepage = "https://github.com/thiezn/iperf3-python";
31 license = lib.licenses.mit;
32 maintainers = [ lib.maintainers.jamiemagee ];
33 };
34}