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