Files
nixpkgs/pkgs/by-name/am/amoco/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

75 lines
1.2 KiB
Nix

{
lib,
fetchFromGitHub,
python3,
}:
python3.pkgs.buildPythonApplication rec {
pname = "amoco";
version = "2.9.8";
format = "pyproject";
src = fetchFromGitHub {
owner = "bdcht";
repo = "amoco";
tag = "v${version}";
hash = "sha256-3+1ssFyU7SKFJgDYBQY0kVjmTHOD71D2AjnH+4bfLXo=";
};
build-system = with python3.pkgs; [
setuptools
];
dependencies = with python3.pkgs; [
blessed
click
crysp
grandalf
pyparsing
tqdm
traitlets
];
optional-dependencies = {
app = with python3.pkgs; [
# ccrawl
ipython
prompt-toolkit
pygments
# pyside6
z3-solver
];
};
nativeCheckInputs = with python3.pkgs; [
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py \
--replace "'pytest-runner'," ""
'';
pythonRelaxDeps = [
"grandalf"
"crysp"
];
pythonImportsCheck = [
"amoco"
];
disabledTests = [
# AttributeError: 'str' object has no attribute '__dict__'
"test_func"
];
meta = with lib; {
description = "Tool for analysing binaries";
mainProgram = "amoco";
homepage = "https://github.com/bdcht/amoco";
license = licenses.gpl2Only;
maintainers = with maintainers; [ fab ];
};
}