1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, ldap3
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "sectools";
10 version = "1.3.9";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchFromGitHub {
16 owner = "p0dalirius";
17 repo = pname;
18 rev = "refs/tags/${version}";
19 hash = "sha256-F9mmPSlfSSS7UDNuX9OPrqDsEpqq0bD3eROG8D9CC78=";
20 };
21
22 propagatedBuildInputs = [
23 ldap3
24 ];
25
26 # Module has no tests
27 doCheck = false;
28
29 pythonImportsCheck = [
30 "sectools"
31 ];
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/${version}";
37 license = with licenses; [ gpl3Only ];
38 maintainers = with maintainers; [ fab ];
39 };
40}