Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / dissect-executable / default.nix
blob8511b2df94485ea04d5756c6ef1dd671240e2e21
1 { lib
2 , buildPythonPackage
3 , dissect-cstruct
4 , dissect-util
5 , fetchFromGitHub
6 , setuptools
7 , setuptools-scm
8 , pythonOlder
9 }:
11 buildPythonPackage rec {
12   pname = "dissect-executable";
13   version = "1.5";
14   pyproject = true;
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "fox-it";
20     repo = "dissect.executable";
21     rev = "refs/tags/${version}";
22     hash = "sha256-aAalU0TUqXc13WnxJvirG3QzQyMstecOfnXMdFT8IzU=";
23   };
25   nativeBuildInputs = [
26     setuptools
27     setuptools-scm
28   ];
30   propagatedBuildInputs = [
31     dissect-cstruct
32     dissect-util
33   ];
35   pythonImportsCheck = [
36     "dissect.executable"
37   ];
39   meta = with lib; {
40     description = "Dissect module implementing a parser for various executable formats such as PE, ELF and Macho-O";
41     homepage = "https://github.com/fox-it/dissect.executable";
42     changelog = "https://github.com/fox-it/dissect.executable/releases/tag/${version}";
43     license = licenses.agpl3Only;
44     maintainers = with maintainers; [ fab ];
45   };