summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/donut-shellcode/default.nix
blob: 42be76fc8c3f116a4a2baf8fe951b35b4bbd1529 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
}:

buildPythonPackage rec {
  pname = "donut-shellcode";
  version = "1.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "TheWover";
    repo = "donut";
    rev = "v${version}";
    hash = "sha256-gKa7ngq2+r4EYRdwH9AWnJodJjCdppzKch4Ve/4ZPhk=";
  };

  build-system = [ setuptools ];

  pythonImportsCheck = [ "donut" ];

  meta = {
    description = "Module to generate x86, x64, or AMD64+x86 position-independent shellcode";
    homepage = "https://github.com/TheWover/donut";
    changelog = "https://github.com/TheWover/donut/blob/${src.rev}/CHANGELOG.md";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ fab ];
  };
}