1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 ldap3,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "sectools";
12 version = "1.4.4";
13 pyproject = true;
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "p0dalirius";
19 repo = "sectools";
20 tag = version;
21 hash = "sha256-dI0zokmndMZ4C7aX73WOdyXvOjCQJzZU6C1uXDt97Vg=";
22 };
23
24 nativeBuildInputs = [ setuptools ];
25
26 propagatedBuildInputs = [ ldap3 ];
27
28 # Module has no tests
29 doCheck = false;
30
31 pythonImportsCheck = [ "sectools" ];
32
33 meta = with lib; {
34 description = "library containing functions to write security tools";
35 homepage = "https://github.com/p0dalirius/sectools";
36 changelog = "https://github.com/p0dalirius/sectools/releases/tag/${src.tag}";
37 license = with licenses; [ gpl3Only ];
38 maintainers = with maintainers; [ fab ];
39 };
40}