blob: 2f16ca8d694700c079b918fba68158434c73f6e3 (
plain)
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
41
42
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
replaceVars,
setuptools,
wheel,
networkmanager,
}:
buildPythonPackage rec {
pname = "nmcli";
version = "1.7.0";
pyproject = true;
src = fetchFromGitHub {
owner = "ushiboy";
repo = "nmcli";
tag = "v${version}";
hash = "sha256-OQwvSg8IzBsZJgAAjoKvHyXBE/gSyhcvFLuEidqstzI=";
};
build-system = [
setuptools
wheel
];
patches = [
(replaceVars ./nmcli-path.patch {
nmcli = lib.getExe' networkmanager "nmcli";
})
];
meta = {
description = "Python library for interacting with NetworkManager CLI";
homepage = "https://github.com/ushiboy/nmcli";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ktechmidas ];
inherit (networkmanager.meta) platforms;
changelog = "https://github.com/ushiboy/nmcli/releases/tag/v${version}";
};
}
|