blob: 5ddb540b7963ea69268db983534e62f723bcae07 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
scikit-build-core,
cmake,
pytestCheckHook,
ninja,
}:
buildPythonPackage rec {
pname = "pydemumble";
version = "0.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "angr";
repo = "pydemumble";
tag = "v${version}";
hash = "sha256-JAUMTOYGHu64L0zLK2dzf0poHrGGiE29WoAR5kRsR+s=";
fetchSubmodules = true;
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail \
', "nanobind >=1.3.2"' \
""
'';
build-system = [
scikit-build-core
];
dontUseCmakeConfigure = true;
nativeBuildInputs = [
cmake
ninja
];
nativeCheckInputs = [ pytestCheckHook ];
enabledTestPaths = [ "tests/" ];
pythonImportsCheck = [ "pydemumble" ];
meta = {
description = "Demumble wrapper library";
longDescription = ''
Python wrapper library for demumble; demumble is a tool to
demangle C++, Rust, and Swift symbol names.
'';
homepage = "https://github.com/angr/pydemumble";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ pbsds ];
};
}
|