blob: abeedb716ad560fe7318715e59bd35ba89cc4e05 (
plain) (
blame)
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
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, future
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "nampa";
version = "1.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "thebabush";
repo = "nampa";
rev = "refs/tags/${version}";
hash = "sha256-ylDthh6fO0jKiYib0bed31Dxt4afiD0Jd5mfRKrsZpE=";
};
postPatch = ''
# https://github.com/thebabush/nampa/pull/13
substituteInPlace setup.py \
--replace "0.1.1" "${version}"
'';
build-system = [
setuptools
];
dependencies = [
future
];
# Not used for binaryninja as plugin
doCheck = false;
pythonImportsCheck = [
"nampa"
];
meta = with lib; {
description = "Python implementation of the FLIRT technology";
homepage = "https://github.com/thebabush/nampa";
changelog = "https://github.com/thebabush/nampa/releases/tag/${version}";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ fab ];
};
}
|