1{ buildPythonPackage
2, fetchFromGitHub
3, lib
4, pytest
5}:
6
7buildPythonPackage rec {
8 pname = "itanium_demangler";
9 version = "1.0"; # pulled from pypi version
10
11 src = fetchFromGitHub {
12 owner = "whitequark";
13 repo = "python-${pname}";
14 rev = "29c77860be48e6dafe3496e4d9d0963ce414e366";
15 sha256 = "0qm95l6542nk63986w9lgzkxg824l31714i584s02rh9xwfg1xfx";
16 };
17
18 checkInputs = [ pytest ];
19
20 checkPhase = ''
21 pytest tests/test.py
22 '';
23
24 meta = with lib; {
25 description = "A pure Python parser for the Itanium C++ ABI symbol mangling language";
26 homepage = "https://github.com/whitequark/python-itanium_demangler";
27 license = licenses.bsd0;
28 maintainers = [ maintainers.pamplemousse ];
29 };
30}