2022-01-19 23:45:15 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
2022-01-19 23:45:15 +00:00
|
|
|
, pytestCheckHook
|
2022-10-21 18:38:19 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-01-19 23:45:15 +00:00
|
|
|
pname = "itanium-demangler";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "1.1";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "whitequark";
|
2022-01-19 23:45:15 +00:00
|
|
|
repo = "python-itanium_demangler";
|
2023-02-22 10:55:15 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2022-10-21 18:38:19 +00:00
|
|
|
hash = "sha256-I6NUfckt2cocQt5dZSFadpshTCuA/6bVNauNXypWh+A=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-01-19 23:45:15 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"tests/test.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
2023-02-22 10:55:15 +00:00
|
|
|
"itanium_demangler"
|
2022-01-19 23:45:15 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-01-19 23:45:15 +00:00
|
|
|
description = "Python parser for the Itanium C++ ABI symbol mangling language";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/whitequark/python-itanium_demangler";
|
|
|
|
license = licenses.bsd0;
|
2022-10-21 18:38:19 +00:00
|
|
|
maintainers = with maintainers; [ fab pamplemousse ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|