blob: b2ec99d38e46bb53caaea889703accfd948da48b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{
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 ];
};
}
|