mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
9995bfa17d
This is useful for debugging nixos tests in a different window: ```console $ nix build ".#checks.x86_64-linux.<yourtest>.driver" -L PYTHONBREAKPOINT=remote_pdb.set_trace REMOTE_PDB_HOST=127.0.0.1 REMOTE_PDB_PORT=4444 ./result/bin/nixos-test-driver ``` ```python { extraPythonPackages = ps: [ ps.remote-pdb ]; testScript = '' breakpoint() ''; } ```
19 lines
553 B
Nix
19 lines
553 B
Nix
{ buildPythonPackage, fetchFromGitHub, lib }:
|
|
buildPythonPackage rec {
|
|
pname = "remote-pdb";
|
|
version = "2.1.0";
|
|
src = fetchFromGitHub {
|
|
owner = "ionelmc";
|
|
repo = "python-remote-pdb";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-/7RysJOJigU4coC6d/Ob2lrtw8u8nLZI8wBk4oEEY3g=";
|
|
};
|
|
meta = with lib; {
|
|
description = "Remote vanilla PDB (over TCP sockets).";
|
|
homepage = "https://github.com/ionelmc/python-remote-pdb";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ mic92 ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|