Loading pkgs/development/python-modules/nmcli/default.nix 0 → 100644 +42 −0 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchFromGitHub, replaceVars, setuptools, wheel, networkmanager, }: buildPythonPackage rec { pname = "nmcli"; version = "1.5.0"; pyproject = true; src = fetchFromGitHub { owner = "ushiboy"; repo = "nmcli"; tag = "v${version}"; hash = "sha256-1gVj4WfTx1NcoyWA9OK5EyGze9hmrXV0Mq50C1S3bfM="; }; 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}"; }; } pkgs/development/python-modules/nmcli/nmcli-path.patch 0 → 100644 +11 −0 Original line number Diff line number Diff line --- a/nmcli/_system.py +++ b/nmcli/_system.py @@ -43,7 +43,7 @@ class System: def nmcli(self, parameters: CommandParameter) -> str: if isinstance(parameters, str): parameters = [parameters] - c = ['sudo', 'nmcli'] if self._use_sudo else ['nmcli'] + c = ['sudo', '@nmcli@'] if self._use_sudo else ['@nmcli@'] commands = c + parameters try: env = dict(os.environ, **{'LANG': self._lang}) No newline at end of file pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -10461,6 +10461,8 @@ self: super: with self; { nmapthon2 = callPackage ../development/python-modules/nmapthon2 { }; nmcli = callPackage ../development/python-modules/nmcli { }; nnpdf = toPythonModule (pkgs.nnpdf.override { python3 = python; }); noaa-coops = callPackage ../development/python-modules/noaa-coops { }; Loading Loading
pkgs/development/python-modules/nmcli/default.nix 0 → 100644 +42 −0 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchFromGitHub, replaceVars, setuptools, wheel, networkmanager, }: buildPythonPackage rec { pname = "nmcli"; version = "1.5.0"; pyproject = true; src = fetchFromGitHub { owner = "ushiboy"; repo = "nmcli"; tag = "v${version}"; hash = "sha256-1gVj4WfTx1NcoyWA9OK5EyGze9hmrXV0Mq50C1S3bfM="; }; 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}"; }; }
pkgs/development/python-modules/nmcli/nmcli-path.patch 0 → 100644 +11 −0 Original line number Diff line number Diff line --- a/nmcli/_system.py +++ b/nmcli/_system.py @@ -43,7 +43,7 @@ class System: def nmcli(self, parameters: CommandParameter) -> str: if isinstance(parameters, str): parameters = [parameters] - c = ['sudo', 'nmcli'] if self._use_sudo else ['nmcli'] + c = ['sudo', '@nmcli@'] if self._use_sudo else ['@nmcli@'] commands = c + parameters try: env = dict(os.environ, **{'LANG': self._lang}) No newline at end of file
pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -10461,6 +10461,8 @@ self: super: with self; { nmapthon2 = callPackage ../development/python-modules/nmapthon2 { }; nmcli = callPackage ../development/python-modules/nmcli { }; nnpdf = toPythonModule (pkgs.nnpdf.override { python3 = python; }); noaa-coops = callPackage ../development/python-modules/noaa-coops { }; Loading