aboutsummaryrefslogtreecommitdiff
GNU Guix consists of Scheme code that implements the deployment model
of the Nix package management tool.  In fact, it currently talks to a
build daemon whose code comes from Nix (see the manual for details.)

Nix was initially written by Eelco Dolstra; other people have been
contributing to it.  See `nix/AUTHORS' for details.

The list of GNU Guix contributors is now generated from the output of
'git log' and written to this file, as can be seen in release tarballs.
== len(expected_command) extracted = {} for word, expected_word in zip(command, expected_command): match = variable_word_re.match(expected_word) if match: extracted[match.group(1)] = word else: assert word == expected_word return extracted def run_missing_executable(command, **kwargs): """ Instead of running a command, raise FileNotFoundError as if its executable was missing. """ raise FileNotFoundError('dummy') class MockedCompletedProcess: """ Object with some fields similar to those of subprocess.CompletedProcess. """ def __init__(self, args, returncode=0, stdout='some output', stderr='some error output', text_output=True): """ Initialize MockedCompletedProcess. Convert strings to bytes if needed. """ self.args = args self.returncode = returncode if type(stdout) is str and not text_output: stdout = stdout.encode() if type(stderr) is str and not text_output: stderr = stderr.encode() self.stdout = stdout self.stderr = stderr