2020-06-13 16:26:07 +01:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2018-12-01 10:52:33 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gdb
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pygdbmi";
|
2021-01-25 14:12:38 +00:00
|
|
|
version = "0.10.0.0";
|
2018-12-01 10:52:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cs01";
|
|
|
|
repo = "pygdbmi";
|
|
|
|
rev = version;
|
2021-01-25 14:12:38 +00:00
|
|
|
sha256 = "0a6b3zyxwdcb671c6lrwxm8fhvsbjh0m8hf1r18m9dha86laimjr";
|
2018-12-01 10:52:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ gdb ];
|
|
|
|
|
2020-06-13 16:26:07 +01:00
|
|
|
# tests require gcc for some reason
|
|
|
|
doCheck = !stdenv.hostPlatform.isDarwin;
|
|
|
|
|
2018-12-01 10:52:33 +00:00
|
|
|
postPatch = ''
|
|
|
|
# tries to execute flake8,
|
|
|
|
# which is likely to break on flake8 updates
|
|
|
|
echo "def main(): return 0" > tests/static_tests.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Parse gdb machine interface output with Python";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/cs01/pygdbmi";
|
2018-12-01 10:52:33 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.mic92 ];
|
|
|
|
};
|
|
|
|
}
|