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