summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/itanium-demangler/default.nix
blob: 6c5e7aa8133e4319bf94d41566ff08e9fde367ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "itanium-demangler";
  version = "1.1";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "whitequark";
    repo = "python-itanium_demangler";
    tag = "v${version}";
    hash = "sha256-I6NUfckt2cocQt5dZSFadpshTCuA/6bVNauNXypWh+A=";
  };

  nativeCheckInputs = [ pytestCheckHook ];

  enabledTestPaths = [ "tests/test.py" ];

  pythonImportsCheck = [ "itanium_demangler" ];

  meta = {
    description = "Python parser for the Itanium C++ ABI symbol mangling language";
    homepage = "https://github.com/whitequark/python-itanium_demangler";
    license = lib.licenses.bsd0;
    maintainers = with lib.maintainers; [
      fab
      pamplemousse
    ];
  };
}