mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
python311Packages.nampa: refactor
This commit is contained in:
parent
c2706010ac
commit
e74a30a737
@ -2,41 +2,49 @@
|
|||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, future
|
, future
|
||||||
, pytestCheckHook
|
, pythonOlder
|
||||||
|
, setuptools
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "nampa";
|
pname = "nampa";
|
||||||
version = "1.0";
|
version = "1.0";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "thebabush";
|
owner = "thebabush";
|
||||||
repo = pname;
|
repo = "nampa";
|
||||||
rev = version;
|
rev = "refs/tags/${version}";
|
||||||
sha256 = "14b6xjm497wrfw4kv24zhsvz2l6zknvx36w8i754hfwz3s3fsl6a";
|
hash = "sha256-ylDthh6fO0jKiYib0bed31Dxt4afiD0Jd5mfRKrsZpE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
|
||||||
future
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeCheckInputs = [
|
|
||||||
pytestCheckHook
|
|
||||||
];
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# https://github.com/thebabush/nampa/pull/13
|
# https://github.com/thebabush/nampa/pull/13
|
||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
--replace "0.1.1" "${version}"
|
--replace "0.1.1" "${version}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pythonImportsCheck = [ "nampa" ];
|
build-system = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
future
|
||||||
|
];
|
||||||
|
|
||||||
|
# Not used for binaryninja as plugin
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"nampa"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python implementation of the FLIRT technology";
|
description = "Python implementation of the FLIRT technology";
|
||||||
mainProgram = "dumpsig.py";
|
|
||||||
homepage = "https://github.com/thebabush/nampa";
|
homepage = "https://github.com/thebabush/nampa";
|
||||||
|
changelog = "https://github.com/thebabush/nampa/releases/tag/${version}";
|
||||||
license = licenses.lgpl3Only;
|
license = licenses.lgpl3Only;
|
||||||
maintainers = with maintainers; [ fab ];
|
maintainers = with maintainers; [ fab ];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user