nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 capstone,
6 filebytes,
7 keystone-engine,
8 pytestCheckHook,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "ropper";
14 version = "1.13.13";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "sashs";
19 repo = "Ropper";
20 tag = "v${version}";
21 hash = "sha256-MOAbACLDdeKCMV4K/n1rAQlxDN0JoDIiUF6Zr3yPw8o=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [
27 capstone
28 filebytes
29 ];
30
31 optional-dependencies = {
32 ropchain = [ keystone-engine ];
33 };
34
35 nativeCheckInputs = [ pytestCheckHook ];
36
37 pythonImportsCheck = [ "ropper" ];
38
39 meta = {
40 description = "Show information about files in different file formats";
41 homepage = "https://scoding.de/ropper/";
42 changelog = "https://github.com/sashs/Ropper/releases/tag/${src.tag}";
43 license = lib.licenses.bsd3;
44 maintainers = with lib.maintainers; [ bennofs ];
45 mainProgram = "ropper";
46 };
47}