1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "itanium-demangler";
11 version = "1.1";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.8";
15
16 src = fetchFromGitHub {
17 owner = "whitequark";
18 repo = "python-itanium_demangler";
19 tag = "v${version}";
20 hash = "sha256-I6NUfckt2cocQt5dZSFadpshTCuA/6bVNauNXypWh+A=";
21 };
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 enabledTestPaths = [ "tests/test.py" ];
26
27 pythonImportsCheck = [ "itanium_demangler" ];
28
29 meta = with lib; {
30 description = "Python parser for the Itanium C++ ABI symbol mangling language";
31 homepage = "https://github.com/whitequark/python-itanium_demangler";
32 license = licenses.bsd0;
33 maintainers = with maintainers; [
34 fab
35 pamplemousse
36 ];
37 };
38}