nixpkgs/pkgs/development/python-modules/remote-pdb/default.nix
Jörg Thalheim 9995bfa17d python3.pkgs.remote-pdb: init at 2.1.0
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()
  '';
}
```
2023-01-27 16:30:48 +01:00

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;
};
}