2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
future,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2021-07-16 19:40:57 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nampa";
|
|
|
|
version = "1.0";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2021-07-16 19:40:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "thebabush";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "nampa";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-ylDthh6fO0jKiYib0bed31Dxt4afiD0Jd5mfRKrsZpE=";
|
2021-07-16 19:40:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# https://github.com/thebabush/nampa/pull/13
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "0.1.1" "${version}"
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
dependencies = [ future ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
# Not used for binaryninja as plugin
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "nampa" ];
|
2021-07-16 19:40:57 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python implementation of the FLIRT technology";
|
|
|
|
homepage = "https://github.com/thebabush/nampa";
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://github.com/thebabush/nampa/releases/tag/${version}";
|
2021-07-16 19:40:57 +00:00
|
|
|
license = licenses.lgpl3Only;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|