nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 dissect-cstruct,
5 dissect-util,
6 fetchFromGitHub,
7 setuptools,
8 setuptools-scm,
9}:
10
11buildPythonPackage rec {
12 pname = "dissect-executable";
13 version = "1.11";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "fox-it";
18 repo = "dissect.executable";
19 tag = version;
20 hash = "sha256-TbygZJjdTfNvwEHmquiXfalu73XgNPZpar50YpxP6NA=";
21 };
22
23 build-system = [
24 setuptools
25 setuptools-scm
26 ];
27
28 dependencies = [
29 dissect-cstruct
30 dissect-util
31 ];
32
33 pythonImportsCheck = [ "dissect.executable" ];
34
35 meta = {
36 description = "Dissect module implementing a parser for various executable formats such as PE, ELF and Macho-O";
37 homepage = "https://github.com/fox-it/dissect.executable";
38 changelog = "https://github.com/fox-it/dissect.executable/releases/tag/${src.tag}";
39 license = lib.licenses.agpl3Only;
40 maintainers = with lib.maintainers; [ fab ];
41 };
42}