1{
2 stdenv,
3 lib,
4 buildPythonPackage,
5 fetchFromGitHub,
6 gdb,
7 pytest,
8}:
9
10buildPythonPackage rec {
11 pname = "pygdbmi";
12 version = "0.11.0.0";
13 format = "setuptools";
14
15 src = fetchFromGitHub {
16 owner = "cs01";
17 repo = "pygdbmi";
18 tag = "v${version}";
19 hash = "sha256-JqEDN8Pg/JttyYQbwkxKkLYuxVnvV45VlClD23eaYyc=";
20 };
21
22 nativeCheckInputs = [
23 gdb
24 pytest
25 ];
26
27 # tests require gcc for some reason
28 doCheck = !stdenv.hostPlatform.isDarwin;
29
30 postPatch = ''
31 # tries to execute flake8,
32 # which is likely to break on flake8 updates
33 echo "def main(): return 0" > tests/static_tests.py
34 '';
35
36 meta = with lib; {
37 description = "Parse gdb machine interface output with Python";
38 homepage = "https://github.com/cs01/pygdbmi";
39 license = licenses.mit;
40 maintainers = [ maintainers.mic92 ];
41 };
42}