nixpkgs/pkgs/development/python-modules/pygdbmi/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

42 lines
846 B
Nix

{
stdenv,
lib,
buildPythonPackage,
fetchFromGitHub,
gdb,
pytest,
}:
buildPythonPackage rec {
pname = "pygdbmi";
version = "0.11.0.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "cs01";
repo = "pygdbmi";
tag = "v${version}";
hash = "sha256-JqEDN8Pg/JttyYQbwkxKkLYuxVnvV45VlClD23eaYyc=";
};
nativeCheckInputs = [
gdb
pytest
];
# tests require gcc for some reason
doCheck = !stdenv.hostPlatform.isDarwin;
postPatch = ''
# tries to execute flake8,
# which is likely to break on flake8 updates
echo "def main(): return 0" > tests/static_tests.py
'';
meta = {
description = "Parse gdb machine interface output with Python";
homepage = "https://github.com/cs01/pygdbmi";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.mic92 ];
};
}