nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 python3,
4 fetchFromGitHub,
5}:
6
7python3.pkgs.buildPythonPackage {
8 pname = "acltoolkit";
9 version = "0-unstable-2023-02-03";
10 format = "setuptools";
11
12 src = fetchFromGitHub {
13 owner = "zblurx";
14 repo = "acltoolkit";
15 rev = "a5219946aa445c0a3b4a406baea67b33f78bca7c";
16 hash = "sha256-97cbkGyIkq2Pk1hydMcViXWoh+Ipi3m0YvEYiaV4zcM=";
17 };
18
19 postPatch = ''
20 # Ignore pinned versions
21 sed -i -e "s/==[0-9.]*//" setup.py
22 '';
23
24 propagatedBuildInputs = with python3.pkgs; [
25 asn1crypto
26 dnspython
27 impacket
28 ldap3
29 pyasn1
30 pycryptodome
31 ];
32
33 # Project has no tests
34 doCheck = false;
35
36 pythonImportsCheck = [
37 "acltoolkit"
38 ];
39
40 meta = {
41 description = "ACL abuse swiss-knife";
42 mainProgram = "acltoolkit";
43 homepage = "https://github.com/zblurx/acltoolkit";
44 license = lib.licenses.mit;
45 maintainers = with lib.maintainers; [ fab ];
46 };
47}