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