mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-05 11:44:02 +00:00
![stuebinm](/assets/img/avatar_default.png)
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
74 lines
1.3 KiB
Nix
74 lines
1.3 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, python3
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "amoco";
|
|
version = "2.9.8";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bdcht";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-3+1ssFyU7SKFJgDYBQY0kVjmTHOD71D2AjnH+4bfLXo=";
|
|
};
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
blessed
|
|
click
|
|
crysp
|
|
grandalf
|
|
pyparsing
|
|
tqdm
|
|
traitlets
|
|
];
|
|
|
|
passthru.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 ];
|
|
};
|
|
}
|