2021-02-08 21:14:54 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, pyvex
|
2022-09-19 00:48:44 +00:00
|
|
|
, setuptools
|
2021-02-08 21:14:54 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ailment";
|
2024-01-03 09:38:57 +00:00
|
|
|
version = "9.2.83";
|
2023-10-12 12:27:05 +00:00
|
|
|
pyproject = true;
|
2022-01-18 21:13:21 +00:00
|
|
|
|
2023-10-12 12:27:05 +00:00
|
|
|
disabled = pythonOlder "3.11";
|
2021-02-08 21:14:54 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "angr";
|
|
|
|
repo = pname;
|
2023-03-28 22:40:05 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-03 09:38:57 +00:00
|
|
|
hash = "sha256-C1Dw+tsJr3QfezLskAGxtgKYEkDs7kfajYJibcigwSs=";
|
2021-02-08 21:14:54 +00:00
|
|
|
};
|
|
|
|
|
2022-09-19 00:48:44 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2022-01-18 21:13:21 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyvex
|
|
|
|
];
|
2021-02-08 21:14:54 +00:00
|
|
|
|
|
|
|
# Tests depend on angr (possibly a circular dependency)
|
|
|
|
doCheck = false;
|
2022-01-18 21:13:21 +00:00
|
|
|
|
2023-10-12 12:27:05 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"ailment"
|
|
|
|
];
|
2021-02-08 21:14:54 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "The angr Intermediate Language";
|
|
|
|
homepage = "https://github.com/angr/ailment";
|
|
|
|
license = with licenses; [ bsd2 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|